Type Alias LineNumber

Source
pub type LineNumber = Option<u16>;

Aliased Type§

enum LineNumber {
    None,
    Some(u16),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(u16)

Some value of type T.

Trait Implementations§

Source§

impl MaxValue<u16> for LineNumber

Source§

impl TryFrom<&Link> for LineNumber

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(prog: &Link) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Token> for LineNumber

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(token: &Token) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Val> for LineNumber

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(val: Val) -> Result<Self, Self::Error>

Performs the conversion.