pub struct Trap {
pub trap_token: _Trap,
pub value: Box<Expr>,
}Expand description
A typed Macaulay2 trap syntax node.
Fields§
§trap_token: _TrapThe trap_token child of this syntax node.
value: Box<Expr>The value child of this syntax node.
Implementations§
Trait Implementations§
Source§impl Lex for Trap
impl Lex for Trap
Source§fn to_tokens(&self, output: &mut TokenStream)
fn to_tokens(&self, output: &mut TokenStream)
Appends this value’s token trees to
output.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Emits this value into a fresh token stream.
Source§impl PrettyTree for Trap
impl PrettyTree for Trap
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Source§impl<N> Reconstruct<N> for Trapwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for Trapwhere
N: ExternalCstNode,
Auto Trait Implementations§
impl Freeze for Trap
impl RefUnwindSafe for Trap
impl Send for Trap
impl Sync for Trap
impl Unpin for Trap
impl UnsafeUnpin for Trap
impl UnwindSafe for Trap
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