Enum ergotree_ir::mir::expr::Expr [−][src]
pub enum Expr {}Show variants
Const(Constant), ConstPlaceholder(ConstantPlaceholder), ByteArrayToLong(ByteArrayToLong), ByteArrayToBigInt(ByteArrayToBigInt), LongToByteArray(LongToByteArray), Collection(Collection), Tuple(Tuple), CalcBlake2b256(CalcBlake2b256), Context, Global, GlobalVars(GlobalVars), FuncValue(FuncValue), Apply(Apply), MethodCall(MethodCall), ProperyCall(PropertyCall), BlockValue(BlockValue), ValDef(ValDef), ValUse(ValUse), If(If), BinOp(BinOp), And(And), Or(Or), Atleast(Atleast), LogicalNot(LogicalNot), Negation(Negation), OptionGet(OptionGet), OptionIsDefined(OptionIsDefined), OptionGetOrElse(OptionGetOrElse), ExtractAmount(ExtractAmount), ExtractRegisterAs(ExtractRegisterAs), ExtractScriptBytes(ExtractScriptBytes), ExtractCreationInfo(ExtractCreationInfo), ExtractId(ExtractId), ByIndex(ByIndex), SizeOf(SizeOf), Fold(Fold), Map(Map), Filter(Filter), Exists(Exists), ForAll(ForAll), SelectField(SelectField), BoolToSigmaProp(BoolToSigmaProp), Upcast(Upcast), CreateProveDlog(CreateProveDlog), CreateProveDhTuple(CreateProveDhTuple), SigmaPropBytes(SigmaPropBytes), DecodePoint(DecodePoint), SigmaAnd(SigmaAnd), SigmaOr(SigmaOr), GetVar(GetVar), DeserializeRegister(DeserializeRegister), DeserializeContext(DeserializeContext),
Expand description
Expression in ErgoTree
Variants
Const(Constant)
Constant value
Placeholder for a constant
ByteArrayToLong(ByteArrayToLong)
Convert byte array to SLong
ByteArrayToBigInt(ByteArrayToBigInt)
Convert byte array to SLong
LongToByteArray(LongToByteArray)
Convert SLong to a byte array
Collection(Collection)
Collection declaration (array of expressions of the same type)
Tuple(Tuple)
Tuple declaration
CalcBlake2b256(CalcBlake2b256)
Predefined functions (global) Blake2b256 hash calculation
Context variables (external)
Special global value which is used to define methods
GlobalVars(GlobalVars)
Predefined global variables
FuncValue(FuncValue)
Function definition
Apply(Apply)
Function application
MethodCall(MethodCall)
Method call
ProperyCall(PropertyCall)
Property call
BlockValue(BlockValue)
Block (statements, followed by an expression)
ValDef(ValDef)
let-bound expression
ValUse(ValUse)
Reference to ValDef
If(If)
If, non-lazy - evaluate both branches
BinOp(BinOp)
Binary operation
And(And)
Logical AND
Or(Or)
Logical OR
Atleast(Atleast)
THRESHOLD composition for sigma expressions
LogicalNot(LogicalNot)
LogicalNot
Negation(Negation)
Negation on numeric type
OptionGet(OptionGet)
Option.get method
OptionIsDefined(OptionIsDefined)
Option.isDefined method
OptionGetOrElse(OptionGetOrElse)
Returns the option’s value if the option is nonempty, otherwise return the result of evaluating default
.
ExtractAmount(ExtractAmount)
Box monetary value
ExtractRegisterAs(ExtractRegisterAs)
Extract register’s value (box.RX properties)
ExtractScriptBytes(ExtractScriptBytes)
Extract box’s guarding script serialized to bytes
ExtractCreationInfo(ExtractCreationInfo)
Tuple of height when block got included into the blockchain and transaction identifier with box index in the transaction outputs serialized to the byte array.
ExtractId(ExtractId)
Box id, Blake2b256 hash of this box’s content, basically equals to blake2b256(bytes)
ByIndex(ByIndex)
Collection, get element by index
SizeOf(SizeOf)
Collection size
Fold(Fold)
Collection fold op
Map(Map)
Collection map op
Filter(Filter)
Collection filter op
Exists(Exists)
Tests whether a predicate holds for at least one element of this collection
ForAll(ForAll)
Tests whether a predicate holds for all elements of this collection.
SelectField(SelectField)
Tuple field access
BoolToSigmaProp(BoolToSigmaProp)
Bool to SigmaProp
Upcast(Upcast)
Upcast numeric value
CreateProveDlog(CreateProveDlog)
Create proveDlog from GroupElement(PK)
CreateProveDhTuple(CreateProveDhTuple)
Create proveDlog from GroupElement(PK)
SigmaPropBytes(SigmaPropBytes)
Extract serialized bytes of a SigmaProp value
DecodePoint(DecodePoint)
Decode byte array to EC point
SigmaAnd(SigmaAnd)
AND conjunction for sigma propositions
SigmaOr(SigmaOr)
OR conjunction for sigma propositions
GetVar(GetVar)
Extracts Context variable by id and type
DeserializeRegister(DeserializeRegister)
Extract register of SELF box as Coll[Byte]
, deserialize it into Value and inline into
the executing script.
DeserializeContext(DeserializeContext)
Extracts context variable as Coll[Byte]
, deserializes it to script and then executes
this script in the current context. The original Coll[Byte]
of the script is
available as getVar[Coll[Byte]](id)
On evaluation returns the result of the
script execution in the current context
Implementations
impl Expr
[src]
impl Expr
[src]pub fn post_eval_tpe(&self) -> SType
[src]
pub fn post_eval_tpe(&self) -> SType
[src]Type expected after the evaluation
pub fn check_post_eval_tpe(
&self,
expected_tpe: SType
) -> Result<(), InvalidExprEvalTypeError>
[src]
pub fn check_post_eval_tpe(
&self,
expected_tpe: SType
) -> Result<(), InvalidExprEvalTypeError>
[src]Check if given expected_tpe type is the same as the expression’s post-evaluation type
pub fn debug_tree(&self) -> String
[src]
pub fn debug_tree(&self) -> String
[src]Prints the tree with newlines
Trait Implementations
impl From<BlockValue> for Expr
[src]
impl From<BlockValue> for Expr
[src]fn from(original: BlockValue) -> Expr
[src]
fn from(original: BlockValue) -> Expr
[src]Performs the conversion.
impl From<BoolToSigmaProp> for Expr
[src]
impl From<BoolToSigmaProp> for Expr
[src]fn from(original: BoolToSigmaProp) -> Expr
[src]
fn from(original: BoolToSigmaProp) -> Expr
[src]Performs the conversion.
impl From<ByteArrayToBigInt> for Expr
[src]
impl From<ByteArrayToBigInt> for Expr
[src]fn from(original: ByteArrayToBigInt) -> Expr
[src]
fn from(original: ByteArrayToBigInt) -> Expr
[src]Performs the conversion.
impl From<ByteArrayToLong> for Expr
[src]
impl From<ByteArrayToLong> for Expr
[src]fn from(original: ByteArrayToLong) -> Expr
[src]
fn from(original: ByteArrayToLong) -> Expr
[src]Performs the conversion.
impl From<CalcBlake2b256> for Expr
[src]
impl From<CalcBlake2b256> for Expr
[src]fn from(original: CalcBlake2b256) -> Expr
[src]
fn from(original: CalcBlake2b256) -> Expr
[src]Performs the conversion.
impl From<Collection> for Expr
[src]
impl From<Collection> for Expr
[src]fn from(original: Collection) -> Expr
[src]
fn from(original: Collection) -> Expr
[src]Performs the conversion.
impl From<CreateProveDhTuple> for Expr
[src]
impl From<CreateProveDhTuple> for Expr
[src]fn from(original: CreateProveDhTuple) -> Expr
[src]
fn from(original: CreateProveDhTuple) -> Expr
[src]Performs the conversion.
impl From<CreateProveDlog> for Expr
[src]
impl From<CreateProveDlog> for Expr
[src]fn from(original: CreateProveDlog) -> Expr
[src]
fn from(original: CreateProveDlog) -> Expr
[src]Performs the conversion.
impl From<DecodePoint> for Expr
[src]
impl From<DecodePoint> for Expr
[src]fn from(original: DecodePoint) -> Expr
[src]
fn from(original: DecodePoint) -> Expr
[src]Performs the conversion.
impl From<DeserializeContext> for Expr
[src]
impl From<DeserializeContext> for Expr
[src]fn from(original: DeserializeContext) -> Expr
[src]
fn from(original: DeserializeContext) -> Expr
[src]Performs the conversion.
impl From<DeserializeRegister> for Expr
[src]
impl From<DeserializeRegister> for Expr
[src]fn from(original: DeserializeRegister) -> Expr
[src]
fn from(original: DeserializeRegister) -> Expr
[src]Performs the conversion.
impl From<ExtractAmount> for Expr
[src]
impl From<ExtractAmount> for Expr
[src]fn from(original: ExtractAmount) -> Expr
[src]
fn from(original: ExtractAmount) -> Expr
[src]Performs the conversion.
impl From<ExtractCreationInfo> for Expr
[src]
impl From<ExtractCreationInfo> for Expr
[src]fn from(original: ExtractCreationInfo) -> Expr
[src]
fn from(original: ExtractCreationInfo) -> Expr
[src]Performs the conversion.
impl From<ExtractRegisterAs> for Expr
[src]
impl From<ExtractRegisterAs> for Expr
[src]fn from(original: ExtractRegisterAs) -> Expr
[src]
fn from(original: ExtractRegisterAs) -> Expr
[src]Performs the conversion.
impl From<ExtractScriptBytes> for Expr
[src]
impl From<ExtractScriptBytes> for Expr
[src]fn from(original: ExtractScriptBytes) -> Expr
[src]
fn from(original: ExtractScriptBytes) -> Expr
[src]Performs the conversion.
impl From<GlobalVars> for Expr
[src]
impl From<GlobalVars> for Expr
[src]fn from(original: GlobalVars) -> Expr
[src]
fn from(original: GlobalVars) -> Expr
[src]Performs the conversion.
impl From<LogicalNot> for Expr
[src]
impl From<LogicalNot> for Expr
[src]fn from(original: LogicalNot) -> Expr
[src]
fn from(original: LogicalNot) -> Expr
[src]Performs the conversion.
impl From<LongToByteArray> for Expr
[src]
impl From<LongToByteArray> for Expr
[src]fn from(original: LongToByteArray) -> Expr
[src]
fn from(original: LongToByteArray) -> Expr
[src]Performs the conversion.
impl From<MethodCall> for Expr
[src]
impl From<MethodCall> for Expr
[src]fn from(original: MethodCall) -> Expr
[src]
fn from(original: MethodCall) -> Expr
[src]Performs the conversion.
impl From<OptionGetOrElse> for Expr
[src]
impl From<OptionGetOrElse> for Expr
[src]fn from(original: OptionGetOrElse) -> Expr
[src]
fn from(original: OptionGetOrElse) -> Expr
[src]Performs the conversion.
impl From<OptionIsDefined> for Expr
[src]
impl From<OptionIsDefined> for Expr
[src]fn from(original: OptionIsDefined) -> Expr
[src]
fn from(original: OptionIsDefined) -> Expr
[src]Performs the conversion.
impl From<PropertyCall> for Expr
[src]
impl From<PropertyCall> for Expr
[src]fn from(original: PropertyCall) -> Expr
[src]
fn from(original: PropertyCall) -> Expr
[src]Performs the conversion.
impl From<SelectField> for Expr
[src]
impl From<SelectField> for Expr
[src]fn from(original: SelectField) -> Expr
[src]
fn from(original: SelectField) -> Expr
[src]Performs the conversion.
impl From<SigmaPropBytes> for Expr
[src]
impl From<SigmaPropBytes> for Expr
[src]fn from(original: SigmaPropBytes) -> Expr
[src]
fn from(original: SigmaPropBytes) -> Expr
[src]Performs the conversion.
impl SigmaSerializable for Expr
[src]
impl SigmaSerializable for Expr
[src]fn sigma_serialize<W: SigmaByteWrite>(&self, w: &mut W) -> Result<(), Error>
[src]
fn sigma_serialize<W: SigmaByteWrite>(&self, w: &mut W) -> Result<(), Error>
[src]Write self
to the given writer
.
This function has a sigma_
prefix to alert the reader that the
serialization in use is consensus-critical serialization
Notice that the error type is std::io::Error
; this indicates that
serialization MUST be infallible up to errors in the underlying writer.
In other words, any type implementing SigmaSerializable
must make illegal states unrepresentable. Read more
fn sigma_parse<R: SigmaByteRead>(r: &mut R) -> Result<Self, SerializationError>
[src]
fn sigma_parse<R: SigmaByteRead>(r: &mut R) -> Result<Self, SerializationError>
[src]Try to read self
from the given reader
.
sigma-
prefix to alert the reader that the serialization in use
is consensus-critical Read more
fn sigma_serialize_bytes(&self) -> Vec<u8>
[src]
fn sigma_serialize_bytes(&self) -> Vec<u8>
[src]Serialize any SigmaSerializable value into bytes
fn sigma_parse_bytes(bytes: &[u8]) -> Result<Self, SerializationError>
[src]
fn sigma_parse_bytes(bytes: &[u8]) -> Result<Self, SerializationError>
[src]Parse self
from the bytes
impl<T: TryFrom<Expr>> TryExtractFrom<Expr> for T
[src]
impl<T: TryFrom<Expr>> TryExtractFrom<Expr> for T
[src]fn try_extract_from(v: Expr) -> Result<Self, TryExtractFromError>
[src]
fn try_extract_from(v: Expr) -> Result<Self, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl TryFrom<Expr> for GlobalVars
[src]
impl TryFrom<Expr> for GlobalVars
[src]impl TryFrom<Expr> for ByteArrayToLong
[src]
impl TryFrom<Expr> for ByteArrayToLong
[src]impl TryFrom<Expr> for ByteArrayToBigInt
[src]
impl TryFrom<Expr> for ByteArrayToBigInt
[src]impl TryFrom<Expr> for OptionIsDefined
[src]
impl TryFrom<Expr> for OptionIsDefined
[src]impl TryFrom<Expr> for OptionGetOrElse
[src]
impl TryFrom<Expr> for OptionGetOrElse
[src]impl TryFrom<Expr> for ExtractRegisterAs
[src]
impl TryFrom<Expr> for ExtractRegisterAs
[src]impl TryFrom<Expr> for CreateProveDlog
[src]
impl TryFrom<Expr> for CreateProveDlog
[src]impl TryFrom<Expr> for SelectField
[src]
impl TryFrom<Expr> for SelectField
[src]impl TryFrom<Expr> for BoolToSigmaProp
[src]
impl TryFrom<Expr> for BoolToSigmaProp
[src]impl TryFrom<Expr> for LogicalNot
[src]
impl TryFrom<Expr> for LogicalNot
[src]impl TryFrom<Expr> for DecodePoint
[src]
impl TryFrom<Expr> for DecodePoint
[src]impl TryFrom<Expr> for LongToByteArray
[src]
impl TryFrom<Expr> for LongToByteArray
[src]impl TryFrom<Expr> for DeserializeRegister
[src]
impl TryFrom<Expr> for DeserializeRegister
[src]impl TryFrom<Expr> for DeserializeContext
[src]
impl TryFrom<Expr> for DeserializeContext
[src]impl TryFrom<Expr> for SigmaPropBytes
[src]
impl TryFrom<Expr> for SigmaPropBytes
[src]impl TryFrom<Expr> for ExtractCreationInfo
[src]
impl TryFrom<Expr> for ExtractCreationInfo
[src]impl TryFrom<Expr> for BlockValue
[src]
impl TryFrom<Expr> for BlockValue
[src]impl TryFrom<Expr> for ExtractScriptBytes
[src]
impl TryFrom<Expr> for ExtractScriptBytes
[src]impl TryFrom<Expr> for CreateProveDhTuple
[src]
impl TryFrom<Expr> for CreateProveDhTuple
[src]impl TryFrom<Expr> for Collection
[src]
impl TryFrom<Expr> for Collection
[src]impl TryFrom<Expr> for PropertyCall
[src]
impl TryFrom<Expr> for PropertyCall
[src]impl TryFrom<Expr> for ExtractAmount
[src]
impl TryFrom<Expr> for ExtractAmount
[src]impl TryFrom<Expr> for CalcBlake2b256
[src]
impl TryFrom<Expr> for CalcBlake2b256
[src]impl TryFrom<Expr> for MethodCall
[src]
impl TryFrom<Expr> for MethodCall
[src]impl Eq for Expr
[src]
impl StructuralEq for Expr
[src]
impl StructuralPartialEq for Expr
[src]
Auto Trait Implementations
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]
impl<T> TryExtractFrom<Expr> for T where
T: TryFrom<Expr>,
[src]pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]
pub fn try_extract_from(Expr) -> Result<T, TryExtractFromError>
[src]Extract the value or return an error if type does not match
impl<F> TryExtractInto<F> for F
[src]
impl<F> TryExtractInto<F> for F
[src]pub fn try_extract_into<T>(Self) -> Result<T, TryExtractFromError> where
T: TryExtractFrom<F>,
[src]
pub fn try_extract_into<T>(Self) -> Result<T, TryExtractFromError> where
T: TryExtractFrom<F>,
[src]Extract value of the given type from any type (e.g. [‘Constant’], super::value::Value
)
on which TryExtractFrom
is implemented Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,