[−][src]Struct rysk_core::register::Register32
A 32-bit value with byte-order and sign independent operations
Trait Implementations
impl Clone for Register32
[src]
fn clone(&self) -> Register32
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Register32
[src]
impl Debug for Register32
[src]
impl Default for Register32
[src]
impl Register for Register32
[src]
fn sign_extended_byte(byte: u8) -> Self
[src]
fn zero_extended_byte(byte: u8) -> Self
[src]
fn sign_extended_half(half: [u8; 2]) -> Self
[src]
fn zero_extended_half(half: [u8; 2]) -> Self
[src]
fn sign_extended_word(word: [u8; 4]) -> Self
[src]
fn zero_extended_word(word: [u8; 4]) -> Self
[src]
fn sign_extended_double(_: [u8; 8]) -> Self
[src]
fn zero_extended_double(_: [u8; 8]) -> Self
[src]
fn byte(self) -> u8
[src]
fn half(self) -> [u8; 2]
[src]
fn word(self) -> [u8; 4]
[src]
fn double(self) -> [u8; 8]
[src]
fn add_signed(self, other: Self) -> Self
[src]
fn add_unsigned(self, other: Self) -> Self
[src]
fn sub_unsigned(self, other: Self) -> Self
[src]
fn shl(self, other: Self) -> Self
[src]
fn shr(self, other: Self) -> Self
[src]
fn sha(self, other: Self) -> Self
[src]
fn and(self, other: Self) -> Self
[src]
fn or(self, other: Self) -> Self
[src]
fn xor(self, other: Self) -> Self
[src]
fn not(self) -> Self
[src]
fn eq(self, other: Self) -> bool
[src]
fn neq(self, other: Self) -> bool
[src]
fn lt_signed(self, other: Self) -> bool
[src]
fn lt_unsigned(self, other: Self) -> bool
[src]
fn gte_signed(self, other: Self) -> bool
[src]
fn gte_unsigned(self, other: Self) -> bool
[src]
impl Xlen for Register32
[src]
type Signed = i32
The concrete signed type that the inner value represents
type Unsigned = u32
The concrete unsigned type that the inner value represents
const WIDTH: RegisterWidth
[src]
fn signed(self) -> i32
[src]
fn unsigned(self) -> u32
[src]
fn from_signed(from: i32) -> Self
[src]
fn from_unsigned(from: u32) -> Self
[src]
fn append(self, value: usize) -> u32
[src]
fn usize(self) -> usize
[src]
Auto Trait Implementations
impl RefUnwindSafe for Register32
impl Send for Register32
impl Sync for Register32
impl Unpin for Register32
impl UnwindSafe for Register32
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,