[][src]Enum nvimpam_lib::card::line::Line

pub enum Line {
    Cells(&'static [Cell]),
    Ges(GesType),
    Provides(&'static [Cell]Conditional),
    Optional(&'static [Cell]u8),
    Repeat(&'static [Cell]u8),
    Block(&'static [Line]&'static [u8]),
    OptionalBlock(&'static [u8]&'static [u8]),
}

A line (actually, zero or more lines) inside a card in a Pamcrash input file.

Variants

A standard line, containing several cells of a fixed width

A General Entity Selection, can consist of several lines

A line that provides a Conditional

An optional line, depending on a conditional

The conditional is given as an index. Walking through the lines of a card will push the result of all conditionals to a Vec in order of occurence. The optional lines will index directly into the Vec to check for the result of their conditional.

A line that is repeated

The number of repeats is given as an index, see the doc for Optional

A block of lines, ended by a line starting with the given string.

A block that's entirely optional, starting with a line of a given string and ending in a line with another given string

Trait Implementations

impl PartialEq<Line> for Line
[src]

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

This method tests for !=.

impl Debug for Line
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Line

impl Sync for Line

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more