Skip to main content

Nf

Enum Nf 

Source
#[repr(u8)]
pub enum Nf { N1 = 1, N2 = 2, N3 = 3, N4 = 4, N5 = 5, N6 = 6, N7 = 7, N8 = 8, }
Expand description

Number of fields per segment for load/store instructions

Variants§

§

N1 = 1

1 field per segment

§

N2 = 2

2 fields per segment

§

N3 = 3

3 fields per segment

§

N4 = 4

4 fields per segment

§

N5 = 5

5 fields per segment

§

N6 = 6

6 fields per segment

§

N7 = 7

7 fields per segment

§

N8 = 8

8 fields per segment

Implementations§

Source§

impl Nf

Source

pub const MAX: Self = Nf::N8

Maximum allowed value for Nf

Source

pub const fn new(nf: u8) -> Option<Self>

Create a new instance.

nf must be in the range 1..=8 or None is returned.

Source

pub const fn fields_per_segment(&self) -> u8

Returns the number of fields per segment for the load/store instruction.

Always in 1..=8 range.

Trait Implementations§

Source§

impl Clone for Nf

Source§

fn clone(&self) -> Nf

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Nf

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Nf

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Nf

Source§

fn eq(&self, other: &Nf) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Nf

Source§

impl Eq for Nf

Source§

impl StructuralPartialEq for Nf

Auto Trait Implementations§

§

impl Freeze for Nf

§

impl RefUnwindSafe for Nf

§

impl Send for Nf

§

impl Sync for Nf

§

impl Unpin for Nf

§

impl UnsafeUnpin for Nf

§

impl UnwindSafe for Nf

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.