Enum triton_vm::op_stack::NumberOfWords
source · pub enum NumberOfWords {
N1,
N2,
N3,
N4,
N5,
}Expand description
Represents the argument, i.e., the n, for instructions like pop n or read_io n.
Variants§
Implementations§
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for NumberOfWords
impl<'arbitrary> Arbitrary<'arbitrary> for NumberOfWords
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§impl Clone for NumberOfWords
impl Clone for NumberOfWords
source§fn clone(&self) -> NumberOfWords
fn clone(&self) -> NumberOfWords
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 NumberOfWords
impl Debug for NumberOfWords
source§impl Default for NumberOfWords
impl Default for NumberOfWords
source§fn default() -> NumberOfWords
fn default() -> NumberOfWords
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NumberOfWords
impl<'de> Deserialize<'de> for NumberOfWords
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 NumberOfWords
impl Display for NumberOfWords
source§impl From<&NumberOfWords> for BFieldElement
impl From<&NumberOfWords> for BFieldElement
source§fn from(num_words: &NumberOfWords) -> Self
fn from(num_words: &NumberOfWords) -> 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<&NumberOfWords> for u32
impl From<&NumberOfWords> for u32
source§fn from(num_words: &NumberOfWords) -> Self
fn from(num_words: &NumberOfWords) -> Self
Converts to this type from the input type.
source§impl From<&NumberOfWords> for u64
impl From<&NumberOfWords> for u64
source§fn from(num_words: &NumberOfWords) -> Self
fn from(num_words: &NumberOfWords) -> Self
Converts to this type from the input type.
source§impl From<&NumberOfWords> for usize
impl From<&NumberOfWords> for usize
source§fn from(num_words: &NumberOfWords) -> Self
fn from(num_words: &NumberOfWords) -> Self
Converts to this type from the input type.
source§impl From<NumberOfWords> for BFieldElement
impl From<NumberOfWords> for BFieldElement
source§fn from(num_words: NumberOfWords) -> Self
fn from(num_words: NumberOfWords) -> 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<NumberOfWords> for u32
impl From<NumberOfWords> for u32
source§fn from(num_words: NumberOfWords) -> Self
fn from(num_words: NumberOfWords) -> Self
Converts to this type from the input type.
source§impl From<NumberOfWords> for u64
impl From<NumberOfWords> for u64
source§fn from(num_words: NumberOfWords) -> Self
fn from(num_words: NumberOfWords) -> Self
Converts to this type from the input type.
source§impl From<NumberOfWords> for usize
impl From<NumberOfWords> for usize
source§fn from(num_words: NumberOfWords) -> Self
fn from(num_words: NumberOfWords) -> Self
Converts to this type from the input type.
source§impl GetSize for NumberOfWords
impl GetSize for NumberOfWords
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 NumberOfWords
impl Hash for NumberOfWords
source§impl IntoEnumIterator for NumberOfWords
impl IntoEnumIterator for NumberOfWords
type Iterator = NumberOfWordsIter
fn iter() -> NumberOfWordsIter ⓘ
source§impl Ord for NumberOfWords
impl Ord for NumberOfWords
source§fn cmp(&self, other: &NumberOfWords) -> Ordering
fn cmp(&self, other: &NumberOfWords) -> 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 NumberOfWords
impl PartialEq for NumberOfWords
source§fn eq(&self, other: &NumberOfWords) -> bool
fn eq(&self, other: &NumberOfWords) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for NumberOfWords
impl PartialOrd for NumberOfWords
source§fn partial_cmp(&self, other: &NumberOfWords) -> Option<Ordering>
fn partial_cmp(&self, other: &NumberOfWords) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl Serialize for NumberOfWords
impl Serialize for NumberOfWords
source§impl TryFrom<&BFieldElement> for NumberOfWords
impl TryFrom<&BFieldElement> for NumberOfWords
§type Error = NumberOfWordsError
type Error = NumberOfWordsError
The type returned in the event of a conversion error.
source§fn try_from(index: &BFieldElement) -> Result<Self, NumberOfWordsError>
fn try_from(index: &BFieldElement) -> Result<Self, NumberOfWordsError>
Performs the conversion.
source§impl TryFrom<BFieldElement> for NumberOfWords
impl TryFrom<BFieldElement> for NumberOfWords
§type Error = NumberOfWordsError
type Error = NumberOfWordsError
The type returned in the event of a conversion error.
source§fn try_from(index: BFieldElement) -> Result<Self, NumberOfWordsError>
fn try_from(index: BFieldElement) -> Result<Self, NumberOfWordsError>
Performs the conversion.
source§impl TryFrom<OpStackElement> for NumberOfWords
impl TryFrom<OpStackElement> for NumberOfWords
§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 NumberOfWords
impl TryFrom<i32> for NumberOfWords
§type Error = NumberOfWordsError
type Error = NumberOfWordsError
The type returned in the event of a conversion error.
source§impl TryFrom<u32> for NumberOfWords
impl TryFrom<u32> for NumberOfWords
§type Error = NumberOfWordsError
type Error = NumberOfWordsError
The type returned in the event of a conversion error.
source§impl TryFrom<u64> for NumberOfWords
impl TryFrom<u64> for NumberOfWords
§type Error = NumberOfWordsError
type Error = NumberOfWordsError
The type returned in the event of a conversion error.
source§impl TryFrom<usize> for NumberOfWords
impl TryFrom<usize> for NumberOfWords
§type Error = NumberOfWordsError
type Error = NumberOfWordsError
The type returned in the event of a conversion error.
impl Copy for NumberOfWords
impl Eq for NumberOfWords
impl StructuralPartialEq for NumberOfWords
Auto Trait Implementations§
impl Freeze for NumberOfWords
impl RefUnwindSafe for NumberOfWords
impl Send for NumberOfWords
impl Sync for NumberOfWords
impl Unpin for NumberOfWords
impl UnwindSafe for NumberOfWords
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> 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