[][src]Struct riscv::register::mcause::Mcause

pub struct Mcause { /* fields omitted */ }

mcause register

Implementations

impl Mcause[src]

pub fn bits(&self) -> usize[src]

Returns the contents of the register as raw bits

pub fn code(&self) -> usize[src]

Returns the code field

pub fn cause(&self) -> Trap[src]

Trap Cause

pub fn is_interrupt(&self) -> bool[src]

Is trap cause an interrupt.

pub fn is_exception(&self) -> bool[src]

Is trap cause an exception.

Trait Implementations

impl Clone for Mcause[src]

impl Copy for Mcause[src]

impl Debug for Mcause[src]

Auto Trait Implementations

impl Send for Mcause

impl Sync for Mcause

impl Unpin for Mcause

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.