[−][src]Struct ergo_lib::ergo_tree::ErgoTree
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<Rc<Expr>> for ErgoTree
[src]
impl PartialEq<ErgoTree> for ErgoTree
[src]
impl SigmaSerializable for ErgoTree
[src]
pub fn sigma_serialize<W: SigmaByteWrite>(&self, w: &mut W) -> Result<(), Error>
[src]
pub fn sigma_parse<R: SigmaByteRead>(
r: &mut R
) -> Result<Self, SerializationError>
[src]
r: &mut R
) -> Result<Self, SerializationError>
pub fn sigma_parse_bytes(mut bytes: Vec<u8>) -> Result<Self, SerializationError>
[src]
pub fn sigma_serialize_bytes(&self) -> Vec<u8>
[src]
impl StructuralEq for ErgoTree
[src]
impl StructuralPartialEq for ErgoTree
[src]
impl TryFrom<ErgoTree> for ProveDlog
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ErgoTree
[src]
impl !Send for ErgoTree
[src]
impl !Sync for ErgoTree
[src]
impl Unpin for ErgoTree
[src]
impl !UnwindSafe for ErgoTree
[src]
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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[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<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>,