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

ConstPlaceholder(ConstantPlaceholder)

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

Context variables (external)

Global

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]

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

Type of the expression

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]

Check if given expected_tpe type is the same as the expression’s post-evaluation type

pub fn debug_tree(&self) -> String[src]

Prints the tree with newlines

Trait Implementations

impl Clone for Expr[src]

fn clone(&self) -> Expr[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Expr[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl From<And> for Expr[src]

fn from(original: And) -> Expr[src]

Performs the conversion.

impl From<Apply> for Expr[src]

fn from(original: Apply) -> Expr[src]

Performs the conversion.

impl From<Atleast> for Expr[src]

fn from(original: Atleast) -> Expr[src]

Performs the conversion.

impl From<BinOp> for Expr[src]

fn from(original: BinOp) -> Expr[src]

Performs the conversion.

impl From<BlockValue> for Expr[src]

fn from(original: BlockValue) -> Expr[src]

Performs the conversion.

impl From<BoolToSigmaProp> for Expr[src]

fn from(original: BoolToSigmaProp) -> Expr[src]

Performs the conversion.

impl From<ByIndex> for Expr[src]

fn from(original: ByIndex) -> Expr[src]

Performs the conversion.

impl From<ByteArrayToBigInt> for Expr[src]

fn from(original: ByteArrayToBigInt) -> Expr[src]

Performs the conversion.

impl From<ByteArrayToLong> for Expr[src]

fn from(original: ByteArrayToLong) -> Expr[src]

Performs the conversion.

impl From<CalcBlake2b256> for Expr[src]

fn from(original: CalcBlake2b256) -> Expr[src]

Performs the conversion.

impl From<Collection> for Expr[src]

fn from(original: Collection) -> Expr[src]

Performs the conversion.

impl From<Constant> for Expr[src]

fn from(original: Constant) -> Expr[src]

Performs the conversion.

impl From<CreateProveDhTuple> for Expr[src]

fn from(original: CreateProveDhTuple) -> Expr[src]

Performs the conversion.

impl From<CreateProveDlog> for Expr[src]

fn from(original: CreateProveDlog) -> Expr[src]

Performs the conversion.

impl From<DecodePoint> for Expr[src]

fn from(original: DecodePoint) -> Expr[src]

Performs the conversion.

impl From<DeserializeContext> for Expr[src]

fn from(original: DeserializeContext) -> Expr[src]

Performs the conversion.

impl From<DeserializeRegister> for Expr[src]

fn from(original: DeserializeRegister) -> Expr[src]

Performs the conversion.

impl From<Exists> for Expr[src]

fn from(original: Exists) -> Expr[src]

Performs the conversion.

impl From<Expr> for ErgoTree[src]

fn from(expr: Expr) -> Self[src]

Performs the conversion.

impl From<ExtractAmount> for Expr[src]

fn from(original: ExtractAmount) -> Expr[src]

Performs the conversion.

impl From<ExtractCreationInfo> for Expr[src]

fn from(original: ExtractCreationInfo) -> Expr[src]

Performs the conversion.

impl From<ExtractId> for Expr[src]

fn from(original: ExtractId) -> Expr[src]

Performs the conversion.

impl From<ExtractRegisterAs> for Expr[src]

fn from(original: ExtractRegisterAs) -> Expr[src]

Performs the conversion.

impl From<ExtractScriptBytes> for Expr[src]

fn from(original: ExtractScriptBytes) -> Expr[src]

Performs the conversion.

impl From<Filter> for Expr[src]

fn from(original: Filter) -> Expr[src]

Performs the conversion.

impl From<Fold> for Expr[src]

fn from(original: Fold) -> Expr[src]

Performs the conversion.

impl From<ForAll> for Expr[src]

fn from(original: ForAll) -> Expr[src]

Performs the conversion.

impl From<FuncValue> for Expr[src]

fn from(original: FuncValue) -> Expr[src]

Performs the conversion.

impl From<GetVar> for Expr[src]

fn from(original: GetVar) -> Expr[src]

Performs the conversion.

impl From<GlobalVars> for Expr[src]

fn from(original: GlobalVars) -> Expr[src]

Performs the conversion.

impl From<If> for Expr[src]

fn from(original: If) -> Expr[src]

Performs the conversion.

impl From<LogicalNot> for Expr[src]

fn from(original: LogicalNot) -> Expr[src]

Performs the conversion.

impl From<LongToByteArray> for Expr[src]

fn from(original: LongToByteArray) -> Expr[src]

Performs the conversion.

impl From<Map> for Expr[src]

fn from(original: Map) -> Expr[src]

Performs the conversion.

impl From<MethodCall> for Expr[src]

fn from(original: MethodCall) -> Expr[src]

Performs the conversion.

impl From<Negation> for Expr[src]

fn from(original: Negation) -> Expr[src]

Performs the conversion.

impl From<OptionGet> for Expr[src]

fn from(original: OptionGet) -> Expr[src]

Performs the conversion.

impl From<OptionGetOrElse> for Expr[src]

fn from(original: OptionGetOrElse) -> Expr[src]

Performs the conversion.

impl From<OptionIsDefined> for Expr[src]

fn from(original: OptionIsDefined) -> Expr[src]

Performs the conversion.

impl From<Or> for Expr[src]

fn from(original: Or) -> Expr[src]

Performs the conversion.

impl From<PropertyCall> for Expr[src]

fn from(original: PropertyCall) -> Expr[src]

Performs the conversion.

impl From<SelectField> for Expr[src]

fn from(original: SelectField) -> Expr[src]

Performs the conversion.

impl From<SigmaAnd> for Expr[src]

fn from(original: SigmaAnd) -> Expr[src]

Performs the conversion.

impl From<SigmaOr> for Expr[src]

fn from(original: SigmaOr) -> Expr[src]

Performs the conversion.

impl From<SigmaPropBytes> for Expr[src]

fn from(original: SigmaPropBytes) -> Expr[src]

Performs the conversion.

impl From<SizeOf> for Expr[src]

fn from(original: SizeOf) -> Expr[src]

Performs the conversion.

impl<T: Into<Value> + LiftIntoSType> From<T> for Expr[src]

fn from(t: T) -> Self[src]

Performs the conversion.

impl From<Tuple> for Expr[src]

fn from(original: Tuple) -> Expr[src]

Performs the conversion.

impl From<Upcast> for Expr[src]

fn from(original: Upcast) -> Expr[src]

Performs the conversion.

impl From<ValDef> for Expr[src]

fn from(original: ValDef) -> Expr[src]

Performs the conversion.

impl From<ValUse> for Expr[src]

fn from(original: ValUse) -> Expr[src]

Performs the conversion.

impl PartialEq<Expr> for Expr[src]

fn eq(&self, other: &Expr) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Expr) -> bool[src]

This method tests for !=.

impl SigmaSerializable for Expr[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]

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]

Serialize any SigmaSerializable value into bytes

fn sigma_parse_bytes(bytes: &[u8]) -> Result<Self, SerializationError>[src]

Parse self from the bytes

impl<T: TryFrom<Expr>> TryExtractFrom<Expr> for T[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 ValDef[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for ValUse[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for Fold[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for FuncValue[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for GlobalVars[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for And[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for SizeOf[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for BinOp[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for ByteArrayToLong[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for ByteArrayToBigInt[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for OptionIsDefined[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for Map[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for Or[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for ForAll[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for Filter[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for GetVar[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for Atleast[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for OptionGetOrElse[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for ExtractRegisterAs[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for CreateProveDlog[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for SelectField[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for Apply[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for BoolToSigmaProp[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for LogicalNot[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for ByIndex[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for If[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for DecodePoint[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for LongToByteArray[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for DeserializeRegister[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for DeserializeContext[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for Exists[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for SigmaPropBytes[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for ExtractCreationInfo[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for SigmaOr[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for BlockValue[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for Negation[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for ExtractScriptBytes[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for CreateProveDhTuple[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for Upcast[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for SigmaAnd[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for Collection[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for PropertyCall[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for ExtractAmount[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for Constant[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for OptionGet[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for CalcBlake2b256[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for Tuple[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for MethodCall[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

impl TryFrom<Expr> for ExtractId[src]

type Error = &'static str

The type returned in the event of a conversion error.

fn try_from(value: Expr) -> Result<Self, Self::Error>[src]

Performs the conversion.

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> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

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]

🔬 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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

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]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

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

pub fn vzip(self) -> V