[][src]Struct ra_ap_syntax::ast::BlockExpr

pub struct BlockExpr { /* fields omitted */ }

Implementations

impl BlockExpr[src]

pub fn l_curly_token(&self) -> Option<SyntaxToken>[src]

pub fn statements(&self) -> AstChildren<Stmt>

Notable traits for AstChildren<N>

impl<N: AstNode> Iterator for AstChildren<N> type Item = N;
[src]

pub fn expr(&self) -> Option<Expr>[src]

pub fn r_curly_token(&self) -> Option<SyntaxToken>[src]

impl BlockExpr[src]

pub fn is_standalone(&self) -> bool[src]

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

impl AstNode for BlockExpr[src]

impl AttrsOwner for BlockExpr[src]

impl Clone for BlockExpr[src]

impl Debug for BlockExpr[src]

impl Display for BlockExpr[src]

impl Eq for BlockExpr[src]

impl From<BlockExpr> for Expr[src]

impl Hash for BlockExpr[src]

impl PartialEq<BlockExpr> for BlockExpr[src]

impl StructuralEq for BlockExpr[src]

impl StructuralPartialEq for BlockExpr[src]

Auto Trait Implementations

impl !RefUnwindSafe for BlockExpr

impl !Send for BlockExpr

impl !Sync for BlockExpr

impl Unpin for BlockExpr

impl !UnwindSafe for BlockExpr

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<N> AstNodeEdit for N where
    N: AstNode + Clone
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.