[][src]Enum dyon::ast::Lazy

pub enum Lazy {
    Variable(Variable),
    UnwrapOk,
    UnwrapErr,
    UnwrapSome,
}

Lazy invariant.

Variants

Variable(Variable)

Return a variable if result of argument is equal to the variable.

UnwrapOk

Unwrap the Ok result.

UnwrapErr

Unwrap the Err result.

UnwrapSome

Unwrap the Some option.

Trait Implementations

impl Clone for Lazy[src]

impl Debug for Lazy[src]

impl PartialEq<Lazy> for Lazy[src]

impl StructuralPartialEq for Lazy[src]

impl Sync for Lazy[src]

This is requires because UnsafeRef(*mut Variable) can not be sent across threads. The lack of UnsafeRef variant when sending across threads is guaranteed at language level. The interior of UnsafeRef can not be accessed outside this library.

Auto Trait Implementations

impl !RefUnwindSafe for Lazy

impl Send for Lazy

impl Unpin for Lazy

impl !UnwindSafe for Lazy

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> 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.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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