Struct elements_miniscript::extensions::Expr
source · pub struct Expr<T: ExtParam> { /* private fields */ }
Expand description
ExprInner
with some values cached
Implementations§
source§impl<T: ExtParam> Expr<T>
impl<T: ExtParam> Expr<T>
sourcepub fn into_inner(self) -> ExprInner<T>
pub fn into_inner(self) -> ExprInner<T>
Obtains the inner
sourcepub fn script_size(&self) -> usize
pub fn script_size(&self) -> usize
Obtains the script size
sourcepub fn from_inner(inner: ExprInner<T>) -> Self
pub fn from_inner(inner: ExprInner<T>) -> Self
sourcepub fn iter_terminals(&self) -> impl Iterator<Item = &ExprInner<T>>
pub fn iter_terminals(&self) -> impl Iterator<Item = &ExprInner<T>>
Obtains an iterator over terminals nodes
Trait Implementations§
source§impl<T: Ord + ExtParam> Ord for Expr<T>
impl<T: Ord + ExtParam> Ord for Expr<T>
source§impl<T: PartialEq + ExtParam> PartialEq<Expr<T>> for Expr<T>
impl<T: PartialEq + ExtParam> PartialEq<Expr<T>> for Expr<T>
source§impl<T: PartialOrd + ExtParam> PartialOrd<Expr<T>> for Expr<T>
impl<T: PartialOrd + ExtParam> PartialOrd<Expr<T>> for Expr<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<PArg, QArg> TranslateExtParam<PArg, QArg> for Expr<PArg>where
PArg: ExtParam,
QArg: ExtParam,
impl<PArg, QArg> TranslateExtParam<PArg, QArg> for Expr<PArg>where PArg: ExtParam, QArg: ExtParam,
source§fn translate_ext<T, E>(&self, t: &mut T) -> Result<Self::Output, E>where
T: ExtParamTranslator<PArg, QArg, E>,
fn translate_ext<T, E>(&self, t: &mut T) -> Result<Self::Output, E>where T: ExtParamTranslator<PArg, QArg, E>,
Translates a struct from one generic to another where the translations
for Pk are provided by the given
ExtParamTranslator
.impl<T: Eq + ExtParam> Eq for Expr<T>
impl<T: ExtParam> StructuralEq for Expr<T>
impl<T: ExtParam> StructuralPartialEq for Expr<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Expr<T>where T: RefUnwindSafe,
impl<T> Send for Expr<T>where T: Send,
impl<T> Sync for Expr<T>where T: Sync,
impl<T> Unpin for Expr<T>where T: Unpin,
impl<T> UnwindSafe for Expr<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more