[][src]Struct voile_util::loc::Labelled

pub struct Labelled<Expr> {
    pub label: Ident,
    pub expr: Expr,
}

Typed label

Fields

label: Ident

Label is an identifier

expr: Expr

The thing attached on this label

Methods

impl<Expr> Labelled<Expr>[src]

pub fn new(label: Ident, expr: Expr) -> Self[src]

pub fn map_expr<Abs>(self, f: impl FnOnce(Expr) -> Abs) -> Labelled<Abs>[src]

Trait Implementations

impl<Expr: Clone> Clone for Labelled<Expr>[src]

impl<Expr: Eq> Eq for Labelled<Expr>[src]

impl<Expr: PartialEq> PartialEq<Labelled<Expr>> for Labelled<Expr>[src]

impl<Expr: Debug> Debug for Labelled<Expr>[src]

impl<Expr> StructuralPartialEq for Labelled<Expr>[src]

impl<Expr> StructuralEq for Labelled<Expr>[src]

Auto Trait Implementations

impl<Expr> Send for Labelled<Expr> where
    Expr: Send

impl<Expr> Sync for Labelled<Expr> where
    Expr: Sync

impl<Expr> Unpin for Labelled<Expr> where
    Expr: Unpin

impl<Expr> UnwindSafe for Labelled<Expr> where
    Expr: UnwindSafe

impl<Expr> RefUnwindSafe for Labelled<Expr> where
    Expr: RefUnwindSafe

Blanket Implementations

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, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

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.

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

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

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