pub enum ScriptItem {
Num(i64),
Bytes(SmallVec<[u8; 32]>),
}Expand description
One stack item in the future hand-rolled interpreter.
Variants§
Num(i64)
A minimally encoded script integer.
Bytes(SmallVec<[u8; 32]>)
A byte vector kept inline for common small pushes.
Trait Implementations§
Source§impl Clone for ScriptItem
impl Clone for ScriptItem
Source§fn clone(&self) -> ScriptItem
fn clone(&self) -> ScriptItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScriptItem
impl Debug for ScriptItem
Source§impl Default for ScriptItem
impl Default for ScriptItem
Source§impl PartialEq for ScriptItem
impl PartialEq for ScriptItem
Source§fn eq(&self, other: &ScriptItem) -> bool
fn eq(&self, other: &ScriptItem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ScriptItem
impl StructuralPartialEq for ScriptItem
Auto Trait Implementations§
impl Freeze for ScriptItem
impl RefUnwindSafe for ScriptItem
impl Send for ScriptItem
impl Sync for ScriptItem
impl Unpin for ScriptItem
impl UnsafeUnpin for ScriptItem
impl UnwindSafe for ScriptItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more