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: PartialOrd + ExtParam> PartialOrd for Expr<T>
impl<T: PartialOrd + ExtParam> PartialOrd for Expr<T>
Source§impl<PArg, QArg> TranslateExtParam<PArg, QArg> for Expr<PArg>
impl<PArg, QArg> TranslateExtParam<PArg, QArg> for Expr<PArg>
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> StructuralPartialEq for Expr<T>
Auto Trait Implementations§
impl<T> Freeze for Expr<T>where
T: Freeze,
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