Skip to main content

RegType

Trait RegType 

Source
pub trait RegType
where Self: Default + From<bool> + From<u8> + From<u16> + From<u32> + Eq + Ord + Add<Output = Self> + AddAssign + Sub<Output = Self> + SubAssign + BitAnd<Output = Self> + BitAndAssign + BitOr<Output = Self> + BitOrAssign + BitXor<Output = Self> + BitXorAssign + Not<Output = Self> + Shl<u8, Output = Self> + Shl<u16, Output = Self> + Shl<u32, Output = Self> + Shl<i32, Output = Self> + Shr<u8, Output = Self> + Shr<u16, Output = Self> + Shr<u32, Output = Self> + Shr<i32, Output = Self> + Display + LowerHex + UpperHex + Debug + Copy + Send + Sync + Sized + 'static,
{ // Required method fn as_u64(&self) -> u64; }
Expand description

Register type.

u32 for RV32 and u64 for RV64.

Required Methods§

Source

fn as_u64(&self) -> u64

Convert to u64

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RegType for u32

Source§

fn as_u64(&self) -> u64

Source§

impl RegType for u64

Source§

fn as_u64(&self) -> u64

Implementors§