[][src]Struct ergo_headless_dapp_framework::ErgoTree

pub struct ErgoTree { /* fields omitted */ }

The root of ErgoScript IR. Serialized instances of this class are self sufficient and can be passed around.

Implementations

impl ErgoTree[src]

pub const MAX_CONSTANTS_COUNT: usize[src]

Reasonable limit for the number of constants allowed in the ErgoTree

pub fn proposition(&self) -> Result<Rc<Expr>, ErgoTreeParsingError>[src]

get Expr out of ErgoTree

pub fn without_segregation(expr: Rc<Expr>) -> ErgoTree[src]

Build ErgoTree using expr as is, without constants segregated

pub fn with_segregation(expr: Rc<Expr>) -> ErgoTree[src]

Build ErgoTree with constants segregated from expr

Trait Implementations

impl Clone for ErgoTree[src]

impl Debug for ErgoTree[src]

impl Eq for ErgoTree[src]

impl From<ErgoTree> for ErgoTree[src]

impl From<Rc<Expr>> for ErgoTree[src]

impl PartialEq<ErgoTree> for ErgoTree[src]

impl SigmaSerializable for ErgoTree[src]

impl StructuralEq for ErgoTree[src]

impl StructuralPartialEq for ErgoTree[src]

Auto Trait Implementations

impl !RefUnwindSafe for ErgoTree

impl !Send for ErgoTree

impl !Sync for ErgoTree

impl Unpin for ErgoTree

impl !UnwindSafe for ErgoTree

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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, 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>,