Enum solp::ast::Expr[][src]

pub enum Expr<'input> {
    Comment(&'input str),
    DigitOrDot(&'input str),
    Guid(&'input str),
    Identifier(&'input str),
    Str(&'input str),
    Version(Box<Expr<'input>>, Box<Expr<'input>>),
    FirstLine(Box<Expr<'input>>),
    Global(Vec<Expr<'input>>),
    Project(Box<Expr<'input>>, Vec<Expr<'input>>),
    ProjectBegin(Box<Expr<'input>>, Box<Expr<'input>>, Box<Expr<'input>>, Box<Expr<'input>>),
    Section(Box<Expr<'input>>, Vec<Expr<'input>>),
    SectionBegin(Vec<Expr<'input>>, Box<Expr<'input>>),
    SectionContent(Box<Expr<'input>>, Box<Expr<'input>>),
    SectionKey(Box<Expr<'input>>),
    SectionValue(Box<Expr<'input>>),
}

Variants

Comment(&'input str)
DigitOrDot(&'input str)
Guid(&'input str)
Identifier(&'input str)
Str(&'input str)
Version(Box<Expr<'input>>, Box<Expr<'input>>)
FirstLine(Box<Expr<'input>>)
Global(Vec<Expr<'input>>)
Project(Box<Expr<'input>>, Vec<Expr<'input>>)
ProjectBegin(Box<Expr<'input>>, Box<Expr<'input>>, Box<Expr<'input>>, Box<Expr<'input>>)
Section(Box<Expr<'input>>, Vec<Expr<'input>>)
SectionBegin(Vec<Expr<'input>>, Box<Expr<'input>>)
SectionContent(Box<Expr<'input>>, Box<Expr<'input>>)
SectionKey(Box<Expr<'input>>)
SectionValue(Box<Expr<'input>>)

Implementations

impl<'input> Expr<'input>[src]

pub fn identifier(&self) -> &'input str[src]

pub fn digit_or_dot(&self) -> &'input str[src]

pub fn string(&self) -> &'input str[src]

pub fn guid(&self) -> &'input str[src]

pub fn is_section(&self, name: &str) -> bool[src]

Trait Implementations

impl<'input> Debug for Expr<'input>[src]

Auto Trait Implementations

impl<'input> RefUnwindSafe for Expr<'input>

impl<'input> Send for Expr<'input>

impl<'input> Sync for Expr<'input>

impl<'input> Unpin for Expr<'input>

impl<'input> UnwindSafe for Expr<'input>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.