pub struct WhileLoop {
pub keyword: _WhileKeyword,
pub condition: Box<Expr>,
pub body: Box<LoopBody>,
}Fields§
§keyword: _WhileKeyword§condition: Box<Expr>§body: Box<LoopBody>Implementations§
Trait Implementations§
Source§impl From<WhileLoop> for SequenceElement
impl From<WhileLoop> for SequenceElement
Source§impl From<WhileLoop> for SyntaxNode
impl From<WhileLoop> for SyntaxNode
Source§impl PrettyTree for WhileLoop
impl PrettyTree for WhileLoop
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 WhileLoopwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for WhileLoopwhere
N: ExternalCstNode,
fn matches(node: &N) -> bool
fn reconstruct(node: N) -> Result<Self, ReconstructError>
Source§impl ToCells for WhileLoop
impl ToCells for WhileLoop
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.
Auto Trait Implementations§
impl Freeze for WhileLoop
impl RefUnwindSafe for WhileLoop
impl Send for WhileLoop
impl Sync for WhileLoop
impl Unpin for WhileLoop
impl UnsafeUnpin for WhileLoop
impl UnwindSafe for WhileLoop
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