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