Struct ergotree_ir::mir::option_is_defined::OptionIsDefined [−][src]
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]
fn clone(&self) -> OptionIsDefined
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for OptionIsDefined
[src]
impl Eq for OptionIsDefined
[src]
impl From<OptionIsDefined> for Expr
[src]
fn from(original: OptionIsDefined) -> Expr
[src]
impl PartialEq<OptionIsDefined> for OptionIsDefined
[src]
fn eq(&self, other: &OptionIsDefined) -> bool
[src]
fn ne(&self, other: &OptionIsDefined) -> bool
[src]
impl SigmaSerializable for OptionIsDefined
[src]
fn sigma_serialize<W: SigmaByteWrite>(&self, w: &mut W) -> Result<(), Error>
[src]
fn sigma_parse<R: SigmaByteRead>(r: &mut R) -> Result<Self, SerializationError>
[src]
fn sigma_serialize_bytes(&self) -> Vec<u8>
[src]
fn sigma_parse_bytes(bytes: Vec<u8>) -> Result<Self, SerializationError>
[src]
impl StructuralEq for OptionIsDefined
[src]
impl StructuralPartialEq for OptionIsDefined
[src]
impl TryFrom<Expr> for OptionIsDefined
[src]
Auto Trait Implementations
impl RefUnwindSafe for OptionIsDefined
impl Send for OptionIsDefined
impl Sync for OptionIsDefined
impl Unpin for OptionIsDefined
impl UnwindSafe for OptionIsDefined
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
T: TryFrom<Expr>,
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
impl<F> TryExtractInto<F> for F
[src]
pub fn try_extract_into<T>(Self) -> Result<T, TryExtractFromError> where
T: TryExtractFrom<F>,
[src]
T: TryExtractFrom<F>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,