[−][src]Enum riscv_sandbox::isa::CsrField
An enum representing every CSR fields (slices of CSR). It is used to access every CSR field individually in order to check their type (RW/RO/WARL/WLRL)
Variants
Methods
impl CsrField
[src]
pub fn get_type(&self) -> CsrFieldType
[src]
pub fn get_csr_id(&self) -> CsrId
[src]
pub fn offset<T: MachineInteger>(&self) -> u32
[src]
pub fn mask<T: MachineInteger>(&self) -> T
[src]
Auto Trait Implementations
impl Send for CsrField
impl Sync for CsrField
impl Unpin for CsrField
impl UnwindSafe for CsrField
impl RefUnwindSafe for CsrField
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,