Enum roff::Inline[][src]

pub enum Inline {
    Roman(String),
    Italic(String),
    Bold(String),
    LineBreak,
}
Expand description

A part of a text line.

Text will be escaped for ROFF. No inline escape sequences will be passed to ROFF. The text may contain newlines, but leading periods will be escaped so that they won’t be interpreted by ROFF as control lines.

Note that the strings stored in the variants are stored as they’re received from the API user. The Line::render function handles escaping etc.

Variants

Roman(String)

Tuple Fields

0: String

Text in the “roman” font, which is the normal font if nothing else is specified.

Italic(String)

Tuple Fields

0: String

Text in the italic (slanted) font.

Bold(String)

Tuple Fields

0: String

Text in a bold face font.

LineBreak

A hard line break. This is an inline element so it’s easy to insert a line break in a paragraph.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Turn a string slice into inline text in the roman font.

This is equivalent to the roman function, but may be more convenient to use.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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)

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.