Struct rhai::StmtBlock[][src]

pub struct StmtBlock {
    pub statements: StaticVec<Stmt>,
    pub pos: Position,
}

(INTERNALS) A statements block. Exported under the internals feature only.

Volatile Data Structure

This type is volatile and may change.

Fields

statements: StaticVec<Stmt>pos: Position

Implementations

impl StmtBlock[src]

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

Is this statements block empty?

pub fn len(&self) -> usize[src]

Number of statements in this statements block.

Trait Implementations

impl Clone for StmtBlock[src]

impl Debug for StmtBlock[src]

impl Default for StmtBlock[src]

impl From<Stmt> for StmtBlock[src]

impl Hash for StmtBlock[src]

Auto Trait Implementations

impl !RefUnwindSafe for StmtBlock

impl !Send for StmtBlock

impl !Sync for StmtBlock

impl Unpin for StmtBlock

impl !UnwindSafe for StmtBlock

Blanket Implementations

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

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

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

impl<T> CallHasher for T where
    T: Hash + ?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, 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.