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§
Source§impl NumberOfWords
impl NumberOfWords
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§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 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§impl PartialOrd for NumberOfWords
impl PartialOrd for NumberOfWords
Source§impl Serialize for NumberOfWords
impl Serialize for NumberOfWords
Source§impl TryFrom<&BFieldElement> for NumberOfWords
impl TryFrom<&BFieldElement> for NumberOfWords
Source§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
Source§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
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 NumberOfWords
impl TryFrom<i32> for NumberOfWords
Source§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
Source§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
Source§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
Source§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> 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