[][src]Enum kaiju_core::program::BlockOp

pub enum BlockOp {
    Label(String),
    Operation(Operation),
}

Variants

Label(String)
Operation(Operation)

Methods

impl BlockOp[src]

pub fn from_ast(ast: &AstBlockOp) -> CompilationResult<Self>[src]

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

pub fn as_label(&self) -> Option<&String>[src]

pub fn as_operation(&self) -> Option<&Operation>[src]

Trait Implementations

impl Clone for BlockOp[src]

impl Debug for BlockOp[src]

impl Serialize for BlockOp[src]

impl<'de> Deserialize<'de> for BlockOp[src]

Auto Trait Implementations

impl Send for BlockOp

impl Sync for BlockOp

impl Unpin for BlockOp

impl UnwindSafe for BlockOp

impl RefUnwindSafe for BlockOp

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]