Skip to main content

FReg

Enum FReg 

Source
#[repr(u8)]
pub enum FReg {
Show 16 variants Fr0 = 0, Fr1 = 1, Fr2 = 2, Fr3 = 3, Fr4 = 4, Fr5 = 5, Fr6 = 6, Fr7 = 7, Fr8 = 8, Fr9 = 9, Fr10 = 10, Fr11 = 11, Fr12 = 12, Fr13 = 13, Fr14 = 14, Fr15 = 15,
}
Expand description

A single-precision floating-point register view.

Variants§

§

Fr0 = 0

Floating-point register FR0.

§

Fr1 = 1

Floating-point register FR1.

§

Fr2 = 2

Floating-point register FR2.

§

Fr3 = 3

Floating-point register FR3.

§

Fr4 = 4

Floating-point register FR4.

§

Fr5 = 5

Floating-point register FR5.

§

Fr6 = 6

Floating-point register FR6.

§

Fr7 = 7

Floating-point register FR7.

§

Fr8 = 8

Floating-point register FR8.

§

Fr9 = 9

Floating-point register FR9.

§

Fr10 = 10

Floating-point register FR10.

§

Fr11 = 11

Floating-point register FR11.

§

Fr12 = 12

Floating-point register FR12.

§

Fr13 = 13

Floating-point register FR13.

§

Fr14 = 14

Floating-point register FR14.

§

Fr15 = 15

Floating-point register FR15.

Implementations§

Source§

impl FReg

Source

pub const fn from_number(number: u8) -> Option<Self>

Convert an architectural register number in the range 0..=15.

Source

pub const fn number(self) -> u8

Return the register number.

Source

pub const fn name(self) -> &'static str

Return the conventional lower-case register name.

Trait Implementations§

Source§

impl Clone for FReg

Source§

fn clone(&self) -> FReg

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for FReg

Source§

impl Debug for FReg

Source§

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

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

impl Display for FReg

Available on crate feature sh4 only.
Source§

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

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

impl Eq for FReg

Source§

impl Hash for FReg

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for FReg

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for FReg

Auto Trait Implementations§

§

impl Freeze for FReg

§

impl RefUnwindSafe for FReg

§

impl Send for FReg

§

impl Sync for FReg

§

impl Unpin for FReg

§

impl UnsafeUnpin for FReg

§

impl UnwindSafe for FReg

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.