pub enum OpStackElement {
Show 16 variants
ST0,
ST1,
ST2,
ST3,
ST4,
ST5,
ST6,
ST7,
ST8,
ST9,
ST10,
ST11,
ST12,
ST13,
ST14,
ST15,
}
Expand description
Represents the OpStack
registers directly accessible by Triton VM.
Variants§
Implementations§
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for OpStackElement
impl<'arbitrary> Arbitrary<'arbitrary> for OpStackElement
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read moreSource§impl Clone for OpStackElement
impl Clone for OpStackElement
Source§fn clone(&self) -> OpStackElement
fn clone(&self) -> OpStackElement
Returns a copy of the value. Read more
1.0.0 · 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 OpStackElement
impl Debug for OpStackElement
Source§impl Default for OpStackElement
impl Default for OpStackElement
Source§fn default() -> OpStackElement
fn default() -> OpStackElement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OpStackElement
impl<'de> Deserialize<'de> for OpStackElement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OpStackElement
impl Display for OpStackElement
Source§impl From<&NumberOfWords> for OpStackElement
impl From<&NumberOfWords> for OpStackElement
Source§fn from(num_words: &NumberOfWords) -> Self
fn from(num_words: &NumberOfWords) -> Self
Converts to this type from the input type.
Source§impl From<&OpStackElement> for BFieldElement
impl From<&OpStackElement> for BFieldElement
Source§fn from(stack_element: &OpStackElement) -> Self
fn from(stack_element: &OpStackElement) -> Self
Converts to this type from the input type.
Source§impl From<&OpStackElement> for i32
impl From<&OpStackElement> for i32
Source§fn from(stack_element: &OpStackElement) -> Self
fn from(stack_element: &OpStackElement) -> Self
Converts to this type from the input type.
Source§impl From<&OpStackElement> for u32
impl From<&OpStackElement> for u32
Source§fn from(stack_element: &OpStackElement) -> Self
fn from(stack_element: &OpStackElement) -> Self
Converts to this type from the input type.
Source§impl From<&OpStackElement> for usize
impl From<&OpStackElement> for usize
Source§fn from(stack_element: &OpStackElement) -> Self
fn from(stack_element: &OpStackElement) -> Self
Converts to this type from the input type.
Source§impl From<NumberOfWords> for OpStackElement
impl From<NumberOfWords> for OpStackElement
Source§fn from(num_words: NumberOfWords) -> Self
fn from(num_words: NumberOfWords) -> Self
Converts to this type from the input type.
Source§impl From<OpStackElement> for BFieldElement
impl From<OpStackElement> for BFieldElement
Source§fn from(stack_element: OpStackElement) -> Self
fn from(stack_element: OpStackElement) -> Self
Converts to this type from the input type.
Source§impl From<OpStackElement> for i32
impl From<OpStackElement> for i32
Source§fn from(stack_element: OpStackElement) -> Self
fn from(stack_element: OpStackElement) -> Self
Converts to this type from the input type.
Source§impl From<OpStackElement> for u32
impl From<OpStackElement> for u32
Source§fn from(stack_element: OpStackElement) -> Self
fn from(stack_element: OpStackElement) -> Self
Converts to this type from the input type.
Source§impl From<OpStackElement> for u64
impl From<OpStackElement> for u64
Source§fn from(stack_element: OpStackElement) -> Self
fn from(stack_element: OpStackElement) -> Self
Converts to this type from the input type.
Source§impl From<OpStackElement> for usize
impl From<OpStackElement> for usize
Source§fn from(stack_element: OpStackElement) -> Self
fn from(stack_element: OpStackElement) -> Self
Converts to this type from the input type.
Source§impl GetSize for OpStackElement
impl GetSize for OpStackElement
Source§fn get_heap_size(&self) -> usize
fn get_heap_size(&self) -> usize
Determines how many bytes this object occupies inside the heap. Read more
Source§fn get_stack_size() -> usize
fn get_stack_size() -> usize
Determines how may bytes this object occupies inside the stack. Read more
Source§impl Hash for OpStackElement
impl Hash for OpStackElement
Source§impl Index<OpStackElement> for OpStack
impl Index<OpStackElement> for OpStack
Source§type Output = BFieldElement
type Output = BFieldElement
The returned type after indexing.
Source§impl IndexMut<OpStackElement> for OpStack
impl IndexMut<OpStackElement> for OpStack
Source§impl IntoEnumIterator for OpStackElement
impl IntoEnumIterator for OpStackElement
type Iterator = OpStackElementIter
fn iter() -> OpStackElementIter ⓘ
Source§impl Ord for OpStackElement
impl Ord for OpStackElement
Source§fn cmp(&self, other: &OpStackElement) -> Ordering
fn cmp(&self, other: &OpStackElement) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OpStackElement
impl PartialEq for OpStackElement
Source§impl PartialOrd for OpStackElement
impl PartialOrd for OpStackElement
Source§impl Serialize for OpStackElement
impl Serialize for OpStackElement
Source§impl TryFrom<BFieldElement> for OpStackElement
impl TryFrom<BFieldElement> for OpStackElement
Source§type Error = OpStackElementError
type Error = OpStackElementError
The type returned in the event of a conversion error.
Source§fn try_from(stack_index: BFieldElement) -> Result<Self, OpStackElementError>
fn try_from(stack_index: BFieldElement) -> Result<Self, OpStackElementError>
Performs the conversion.
Source§impl TryFrom<OpStackElement> for NumberOfWords
impl TryFrom<OpStackElement> for NumberOfWords
Source§type Error = NumberOfWordsError
type Error = NumberOfWordsError
The type returned in the event of a conversion error.
Source§fn try_from(index: OpStackElement) -> Result<Self, NumberOfWordsError>
fn try_from(index: OpStackElement) -> Result<Self, NumberOfWordsError>
Performs the conversion.
Source§impl TryFrom<i32> for OpStackElement
impl TryFrom<i32> for OpStackElement
Source§type Error = OpStackElementError
type Error = OpStackElementError
The type returned in the event of a conversion error.
Source§impl TryFrom<u32> for OpStackElement
impl TryFrom<u32> for OpStackElement
Source§type Error = OpStackElementError
type Error = OpStackElementError
The type returned in the event of a conversion error.
Source§impl TryFrom<u64> for OpStackElement
impl TryFrom<u64> for OpStackElement
Source§type Error = OpStackElementError
type Error = OpStackElementError
The type returned in the event of a conversion error.
Source§impl TryFrom<usize> for OpStackElement
impl TryFrom<usize> for OpStackElement
Source§type Error = OpStackElementError
type Error = OpStackElementError
The type returned in the event of a conversion error.
impl Copy for OpStackElement
impl Eq for OpStackElement
impl StructuralPartialEq for OpStackElement
Auto Trait Implementations§
impl Freeze for OpStackElement
impl RefUnwindSafe for OpStackElement
impl Send for OpStackElement
impl Sync for OpStackElement
impl Unpin for OpStackElement
impl UnwindSafe for OpStackElement
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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