pub struct ViewArm<'a> {
pub variant: Option<Symbol>,
pub bindings: Vec<(Symbol, Symbol)>,
pub body: Vec<ViewNode<'a>>,
}Expand description
One {when Pattern:} arm of a view {inspect …:}.
Fields§
§variant: Option<Symbol>The variant name (Ok, JObj), or None for Otherwise.
bindings: Vec<(Symbol, Symbol)>(field, binding) pairs the pattern binds.
body: Vec<ViewNode<'a>>Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ViewArm<'a>
impl<'a> RefUnwindSafe for ViewArm<'a>
impl<'a> Send for ViewArm<'a>
impl<'a> Sync for ViewArm<'a>
impl<'a> Unpin for ViewArm<'a>
impl<'a> UnsafeUnpin for ViewArm<'a>
impl<'a> UnwindSafe for ViewArm<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more