[][src]Enum ergo_lib::chain::ergo_box::NonMandatoryRegisterId

#[repr(u8)]pub enum NonMandatoryRegisterId {
    R4,
    R5,
    R6,
    R7,
    R8,
    R9,
}

newtype for additional registers R4 - R9

Variants

R4

id for R4 register

R5

id for R5 register

R6

id for R6 register

R7

id for R7 register

R8

id for R8 register

R9

id for R9 register

Implementations

impl NonMandatoryRegisterId[src]

pub const START_INDEX: usize[src]

starting index for non-mandatory registers

pub const END_INDEX: usize[src]

end index for non-mandatory registers

pub const NUM_REGS: usize[src]

max number of registers

pub const REG_IDS: [NonMandatoryRegisterId; 6][src]

all register ids

pub fn get_by_zero_index(i: usize) -> NonMandatoryRegisterId[src]

get register by it's index starting from 0 i is expected to be in range 0..Self::NUM_REGS , otherwise panic

Trait Implementations

impl Clone for NonMandatoryRegisterId[src]

impl Copy for NonMandatoryRegisterId[src]

impl Debug for NonMandatoryRegisterId[src]

impl<'de> Deserialize<'de> for NonMandatoryRegisterId[src]

impl Eq for NonMandatoryRegisterId[src]

impl Hash for NonMandatoryRegisterId[src]

impl Into<String> for NonMandatoryRegisterId[src]

impl PartialEq<NonMandatoryRegisterId> for NonMandatoryRegisterId[src]

impl Serialize for NonMandatoryRegisterId[src]

impl StructuralEq for NonMandatoryRegisterId[src]

impl StructuralPartialEq for NonMandatoryRegisterId[src]

impl TryFrom<String> for NonMandatoryRegisterId[src]

type Error = NonMandatoryRegisterIdParsingError

The type returned in the event of a conversion error.

impl TryFrom<i8> for NonMandatoryRegisterId[src]

type Error = RegisterIdOutOfBounds

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<F> TryExtractInto<F> for F[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,