Enum miniscript::iter::Tree
source · pub enum Tree<T> {
Nullary,
Unary(T),
Binary(T, T),
Nary(Arc<[T]>),
}
Expand description
Abstract node of a tree.
Tracks the arity (out-degree) of a node, which is the only thing that is needed for iteration purposes.
Variants§
Nullary
Combinator with no children.
Unary(T)
Combinator with one child.
Binary(T, T)
Combinator with two children.
Nary(Arc<[T]>)
Combinator with more than two children.
Auto Trait Implementations§
impl<T> RefUnwindSafe for Tree<T>where T: RefUnwindSafe,
impl<T> Send for Tree<T>where T: Send + Sync,
impl<T> Sync for Tree<T>where T: Send + Sync,
impl<T> Unpin for Tree<T>where T: Unpin,
impl<T> UnwindSafe for Tree<T>where T: UnwindSafe + RefUnwindSafe,
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