[][src]Struct moore_svlog::pattern_mapping::PatternMapping

pub struct PatternMapping<'a> {
    pub hir: &'a Expr<'a>,
    pub ty: &'a UnpackedType<'a>,
    pub fields: Vec<(PatternField<'a>, &'a Expr<'a>)>,
}

A mapping of the indices/members of a pattern's type to an expression.

Fields

hir: &'a Expr<'a>

The corresponding pattern expression.

ty: &'a UnpackedType<'a>

The type the pattern maps to.

fields: Vec<(PatternField<'a>, &'a Expr<'a>)>

The mapped expression for each field. The fields are in type order. Multiple fields may be assigned the same expression.

Trait Implementations

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

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

Auto Trait Implementations

impl<'a> !RefUnwindSafe for PatternMapping<'a>[src]

impl<'a> Send for PatternMapping<'a>[src]

impl<'a> Sync for PatternMapping<'a>[src]

impl<'a> Unpin for PatternMapping<'a>[src]

impl<'a> !UnwindSafe for PatternMapping<'a>[src]

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> 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 = 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.