Struct miniscript::descriptor::Stack
source · [−]pub struct Stack<'stack>(pub Vec<StackElement<'stack>>);
Expand description
Stack Data structure representing the stack input to Miniscript. This Stack is created from the combination of ScriptSig and Witness stack.
Tuple Fields
0: Vec<StackElement<'stack>>
Trait Implementations
sourceimpl<'stack> Ord for Stack<'stack>
impl<'stack> Ord for Stack<'stack>
sourceimpl<'stack> PartialOrd<Stack<'stack>> for Stack<'stack>
impl<'stack> PartialOrd<Stack<'stack>> for Stack<'stack>
sourcefn partial_cmp(&self, other: &Stack<'stack>) -> Option<Ordering>
fn partial_cmp(&self, other: &Stack<'stack>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl<'stack> Eq for Stack<'stack>
impl<'stack> StructuralEq for Stack<'stack>
impl<'stack> StructuralPartialEq for Stack<'stack>
Auto Trait Implementations
impl<'stack> RefUnwindSafe for Stack<'stack>
impl<'stack> Send for Stack<'stack>
impl<'stack> Sync for Stack<'stack>
impl<'stack> Unpin for Stack<'stack>
impl<'stack> UnwindSafe for Stack<'stack>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more