[][src]Struct full_moon::ast::ElseIf

pub struct ElseIf<'a> { /* fields omitted */ }

An elseif block in a bigger If statement

Implementations

impl<'a> ElseIf<'a>[src]

pub fn new(condition: Expression<'a>) -> Self[src]

Creates a new ElseIf from the given condition

pub fn else_if_token(&self) -> &TokenReference<'a>[src]

The elseif token

pub fn condition(&self) -> &Expression<'a>[src]

The condition of the elseif, condition in elseif condition then

pub fn then_token(&self) -> &TokenReference<'a>[src]

The then token

pub fn block(&self) -> &Block<'a>[src]

The body of the elseif

pub fn with_else_if_token(
    self,
    else_if_token: Cow<'a, TokenReference<'a>>
) -> Self
[src]

Returns a new ElseIf with the given elseif token

pub fn with_condition(self, condition: Expression<'a>) -> Self[src]

Returns a new ElseIf with the given condition

pub fn with_then_token(self, then_token: Cow<'a, TokenReference<'a>>) -> Self[src]

Returns a new ElseIf with the given then token

pub fn with_block(self, block: Block<'a>) -> Self[src]

Returns a new ElseIf with the given block

Trait Implementations

impl<'a> Clone for ElseIf<'a>[src]

impl<'a> Debug for ElseIf<'a>[src]

impl<'de: 'a, 'a> Deserialize<'de> for ElseIf<'a>[src]

impl<'a> Display for ElseIf<'a>[src]

impl<'a> Node<'a> for ElseIf<'a>[src]

impl<'a> Owned for ElseIf<'a>[src]

type Owned = ElseIf<'static>

What an owned version of the object looks like. Usually contains a 'static lifetime.

impl<'a> PartialEq<ElseIf<'a>> for ElseIf<'a>[src]

impl<'a> Serialize for ElseIf<'a>[src]

impl<'a> StructuralPartialEq for ElseIf<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for ElseIf<'a>

impl<'a> Send for ElseIf<'a>

impl<'a> Sync for ElseIf<'a>

impl<'a> Unpin for ElseIf<'a>

impl<'a> UnwindSafe for ElseIf<'a>

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.