#[repr(C)]
pub struct TrapFrame {
Show 35 fields pub ra: usize, pub t0: usize, pub t1: usize, pub t2: usize, pub t3: usize, pub t4: usize, pub t5: usize, pub t6: usize, pub a0: usize, pub a1: usize, pub a2: usize, pub a3: usize, pub a4: usize, pub a5: usize, pub a6: usize, pub a7: usize, pub s0: usize, pub s1: usize, pub s2: usize, pub s3: usize, pub s4: usize, pub s5: usize, pub s6: usize, pub s7: usize, pub s8: usize, pub s9: usize, pub s10: usize, pub s11: usize, pub gp: usize, pub tp: usize, pub sp: usize, pub pc: usize, pub mstatus: usize, pub mcause: usize, pub mtval: usize,
}
Expand description

Registers saved in trap handler

Fields§

§ra: usize§t0: usize§t1: usize§t2: usize§t3: usize§t4: usize§t5: usize§t6: usize§a0: usize§a1: usize§a2: usize§a3: usize§a4: usize§a5: usize§a6: usize§a7: usize§s0: usize§s1: usize§s2: usize§s3: usize§s4: usize§s5: usize§s6: usize§s7: usize§s8: usize§s9: usize§s10: usize§s11: usize§gp: usize§tp: usize§sp: usize§pc: usize§mstatus: usize§mcause: usize§mtval: usize

Trait Implementations§

§

impl Clone for TrapFrame

§

fn clone(&self) -> TrapFrame

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for TrapFrame

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for TrapFrame

§

fn default() -> TrapFrame

Returns the “default value” for a type. Read more
§

impl Copy for TrapFrame

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.