pub struct TrapStatement {
pub keyword: _TrapKeyword,
pub value: Box<Expr>,
}Fields§
§keyword: _TrapKeyword§value: Box<Expr>Implementations§
Source§impl TrapStatement
impl TrapStatement
pub fn new(keyword: _TrapKeyword, value: Expr) -> Self
Trait Implementations§
Source§impl Debug for TrapStatement
impl Debug for TrapStatement
Source§impl From<TrapStatement> for Component
impl From<TrapStatement> for Component
Source§fn from(value: TrapStatement) -> Self
fn from(value: TrapStatement) -> Self
Converts to this type from the input type.
Source§impl From<TrapStatement> for Expr
impl From<TrapStatement> for Expr
Source§fn from(value: TrapStatement) -> Self
fn from(value: TrapStatement) -> Self
Converts to this type from the input type.
Source§impl From<TrapStatement> for SequenceElement
impl From<TrapStatement> for SequenceElement
Source§fn from(value: TrapStatement) -> Self
fn from(value: TrapStatement) -> Self
Converts to this type from the input type.
Source§impl From<TrapStatement> for SyntaxNode
impl From<TrapStatement> for SyntaxNode
Source§fn from(value: TrapStatement) -> Self
fn from(value: TrapStatement) -> Self
Converts to this type from the input type.
Source§impl PrettyTree for TrapStatement
impl PrettyTree for TrapStatement
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 TrapStatementwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for TrapStatementwhere
N: ExternalCstNode,
fn matches(node: &N) -> bool
fn reconstruct(node: N) -> Result<Self, ReconstructError>
Source§impl ToCells for TrapStatement
impl ToCells for TrapStatement
Source§fn to_cells(&self, output: &mut CellStream)
fn to_cells(&self, output: &mut CellStream)
Appends this value’s global cells to
output.Source§fn to_cell_stream(&self, source_id: SourceId) -> CellStream
fn to_cell_stream(&self, source_id: SourceId) -> CellStream
Emits this value into a fresh cell stream with the requested identity.
Source§impl ToTokens for TrapStatement
impl ToTokens for TrapStatement
Auto Trait Implementations§
impl Freeze for TrapStatement
impl RefUnwindSafe for TrapStatement
impl Send for TrapStatement
impl Sync for TrapStatement
impl Unpin for TrapStatement
impl UnsafeUnpin for TrapStatement
impl UnwindSafe for TrapStatement
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