[][src]Struct riscv::register::mtvec::Mtvec

pub struct Mtvec { /* fields omitted */ }

mtvec register

Implementations

impl Mtvec[src]

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

Returns the contents of the register as raw bits

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

Returns the trap-vector base-address

pub fn trap_mode(&self) -> Option<TrapMode>[src]

Returns the trap-vector mode

Trait Implementations

impl Clone for Mtvec[src]

impl Copy for Mtvec[src]

impl Debug for Mtvec[src]

Auto Trait Implementations

impl Send for Mtvec

impl Sync for Mtvec

impl Unpin for Mtvec

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.