pub struct BlockExpr(/* private fields */);Implementations§
Source§impl BlockExpr
impl BlockExpr
pub fn lbrace(&self) -> Option<SyntaxToken<RLanguage>>
pub fn rbrace(&self) -> Option<SyntaxToken<RLanguage>>
Sourcepub fn statements(&self) -> impl Iterator<Item = SyntaxElement<RLanguage>> + '_
pub fn statements(&self) -> impl Iterator<Item = SyntaxElement<RLanguage>> + '_
The statement elements between the braces, in source order — the
non-trivia children that are not the braces, comments, or ; separators.
Each is a bare token (x) or an expression node.
Trait Implementations§
impl Eq for BlockExpr
impl StructuralPartialEq for BlockExpr
Auto Trait Implementations§
impl !RefUnwindSafe for BlockExpr
impl !Send for BlockExpr
impl !Sync for BlockExpr
impl !UnwindSafe for BlockExpr
impl Freeze for BlockExpr
impl Unpin for BlockExpr
impl UnsafeUnpin for BlockExpr
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