Struct ra_ap_syntax::ast::BlockExpr [−][src]
pub struct BlockExpr { /* fields omitted */ }
Implementations
pub fn statements(&self) -> AstChildren<Stmt>ⓘNotable traits for AstChildren<N>
impl<N: AstNode> Iterator for AstChildren<N> type Item = N;
pub fn items(&self) -> AstChildren<Item>ⓘNotable traits for AstChildren<N>
impl<N: AstNode> Iterator for AstChildren<N> type Item = N;
false if the block is an intrinsic part of the syntax and can’t be replaced with arbitrary expression.
fn foo() { not_stand_alone } const FOO: () = { stand_alone };
Trait Implementations
fn attrs(&self) -> AstChildren<Attr>ⓘNotable traits for AstChildren<N>
impl<N: AstNode> Iterator for AstChildren<N> type Item = N;
Auto Trait Implementations
impl !RefUnwindSafe for BlockExpr
impl !UnwindSafe for BlockExpr
Blanket Implementations
fn replace_children(
&self,
to_replace: RangeInclusive<SyntaxElement>,
to_insert: impl IntoIterator<Item = SyntaxElement>
) -> Self
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.