Struct moore_svlog::pattern_mapping::PatternMapping [−][src]
pub struct PatternMapping<'a> {
pub hir: &'a Expr<'a>,
pub ty: &'a UnpackedType<'a>,
pub fields: Vec<(PatternField<'a>, &'a Expr<'a>)>,
}
Expand description
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
Auto Trait Implementations
impl<'a> !RefUnwindSafe for PatternMapping<'a>
impl<'a> Send for PatternMapping<'a>
impl<'a> Sync for PatternMapping<'a>
impl<'a> Unpin for PatternMapping<'a>
impl<'a> !UnwindSafe for PatternMapping<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more