core::fmt::Alignment - Rust
Description: API documentation for the Rust `Alignment` enum in crate `core`.
Keywords: rust, rustlang, rust-lang, Alignment

# Enum core::fmt::Alignment [−] [src]

    pub enum Alignment {
        Left,
        Right,
        Center,
        Unknown,
    }

🔬 This is a nightly-only experimental API. (`fmt_flags_align` #27726)

Possible alignments returned by `Formatter::align`

## Variants

`Left`
🔬 This is a nightly-only experimental API. (`fmt_flags_align` #27726)

Indication that contents should be left-aligned.

`Right`
🔬 This is a nightly-only experimental API. (`fmt_flags_align` #27726)

Indication that contents should be right-aligned.

`Center`
🔬 This is a nightly-only experimental API. (`fmt_flags_align` #27726)

Indication that contents should be center-aligned.

`Unknown`
🔬 This is a nightly-only experimental API. (`fmt_flags_align` #27726)

No alignment was requested.

## Trait Implementations

### `impl Debug for Alignment`
[src]

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result`

Formats the value using the given formatter.

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)