Enum stybulate::Style[][src]

pub enum Style {
    Plain,
    Simple,
    Github,
    Grid,
    Fancy,
    Presto,
    FancyGithub,
    FancyPresto,
}
Expand description

The style of the table

Examples shown will have a header line and two content lines

Variants

Plain
item      qty
spam       42
eggs      451
Simple
item      qty
------  -----
spam       42
eggs      451
Github
| item   |   qty |
|--------|-------|
| spam   |    42 |
| eggs   |   451 |
Grid
+--------+-------+
| item   |   qty |
+========+=======+
| spam   |    42 |
+--------+-------+
| eggs   |   451 |
+--------+-------+
Fancy
╒════════╤═══════╕
│ item   │   qty │
╞════════╪═══════╡
│ spam   │    42 │
├────────┼───────┤
│ eggs   │   451 │
╘════════╧═══════╛
Presto
item   |   qty
--------+-------
spam   |    42
eggs   |   451
FancyGithub
│ item   │   qty │
├────────┼───────┤
│ spam   │    42 │
│ eggs   │   451 │
FancyPresto
item   │   qty
───────┼──────
spam   │    42
eggs   │   451

Implementations

Get Style from &str

Returns the corresponding format

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.