pub struct DebugClause {
pub keyword: DebugKeyword,
pub value: Option<Box<Expr>>,
}Fields§
§keyword: DebugKeyword§value: Option<Box<Expr>>Implementations§
Source§impl DebugClause
impl DebugClause
pub fn new(keyword: DebugKeyword, value: Option<Expr>) -> Self
Trait Implementations§
Source§impl Debug for DebugClause
impl Debug for DebugClause
Source§impl From<DebugClause> for Component
impl From<DebugClause> for Component
Source§fn from(value: DebugClause) -> Self
fn from(value: DebugClause) -> Self
Converts to this type from the input type.
Source§impl From<DebugClause> for Expr
impl From<DebugClause> for Expr
Source§fn from(value: DebugClause) -> Self
fn from(value: DebugClause) -> Self
Converts to this type from the input type.
Source§impl From<DebugClause> for SequenceElement
impl From<DebugClause> for SequenceElement
Source§fn from(value: DebugClause) -> Self
fn from(value: DebugClause) -> Self
Converts to this type from the input type.
Source§impl From<DebugClause> for SyntaxNode
impl From<DebugClause> for SyntaxNode
Source§fn from(value: DebugClause) -> Self
fn from(value: DebugClause) -> Self
Converts to this type from the input type.
Source§impl PrettyTree for DebugClause
impl PrettyTree for DebugClause
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 DebugClausewhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for DebugClausewhere
N: ExternalCstNode,
fn matches(node: &N) -> bool
fn reconstruct(node: N) -> Result<Self, ReconstructError>
Source§impl ToCells for DebugClause
impl ToCells for DebugClause
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 DebugClause
impl ToTokens for DebugClause
Auto Trait Implementations§
impl Freeze for DebugClause
impl RefUnwindSafe for DebugClause
impl Send for DebugClause
impl Sync for DebugClause
impl Unpin for DebugClause
impl UnsafeUnpin for DebugClause
impl UnwindSafe for DebugClause
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