Struct ergotree_ir::mir::option_is_defined::OptionIsDefined[][src]

pub struct OptionIsDefined {
    pub input: Box<Expr>,
}

Returns false if the option is None, true otherwise.

Fields

input: Box<Expr>

Object of SOption type

Implementations

impl OptionIsDefined[src]

pub fn new(input: Expr) -> Result<Self, InvalidArgumentError>[src]

Create new object, returns an error if any of the requirements failed

pub fn tpe(&self) -> SType[src]

Type

Trait Implementations

impl Clone for OptionIsDefined[src]

impl Debug for OptionIsDefined[src]

impl Eq for OptionIsDefined[src]

impl From<OptionIsDefined> for Expr[src]

impl PartialEq<OptionIsDefined> for OptionIsDefined[src]

impl SigmaSerializable for OptionIsDefined[src]

impl StructuralEq for OptionIsDefined[src]

impl StructuralPartialEq for OptionIsDefined[src]

impl TryFrom<Expr> for OptionIsDefined[src]

type Error = &'static str

The type returned in the event of a conversion error.

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryExtractFrom<Expr> for T where
    T: TryFrom<Expr>, 
[src]

impl<F> TryExtractInto<F> for F[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,