# Hedeleg in riscv::register::hedeleg - Rust
API documentation for the Rust `Hedeleg` struct in crate `riscv`.
Keywords: rust, rustlang, rust-lang, Hedeleg

# Struct riscv::register::hedeleg::Hedeleg

source · [−]

    pub struct Hedeleg { /* private fields */ }

## Implementations

source

### impl Hedeleg

source

#### pub fn bits(&self) -> usize

source

#### pub fn from_bits(x: usize) -> Self

source

#### pub unsafe fn write(&self)

source

#### pub fn ex0(&self) -> bool

Instruction address misaligned

source

#### pub fn set_ex0(&mut self, val: bool)

source

#### pub fn ex1(&self) -> bool

Instruction access fault

source

#### pub fn set_ex1(&mut self, val: bool)

source

#### pub fn ex2(&self) -> bool

Illegal instruction

source

#### pub fn set_ex2(&mut self, val: bool)

source

#### pub fn ex3(&self) -> bool

Breakpoint

source

#### pub fn set_ex3(&mut self, val: bool)

source

#### pub fn ex4(&self) -> bool

Load address misaligned

source

#### pub fn set_ex4(&mut self, val: bool)

source

#### pub fn ex5(&self) -> bool

Load access fault

source

#### pub fn set_ex5(&mut self, val: bool)

source

#### pub fn ex6(&self) -> bool

Store/AMO address misaligned

source

#### pub fn set_ex6(&mut self, val: bool)

source

#### pub fn ex7(&self) -> bool

Store/AMO access fault

source

#### pub fn set_ex7(&mut self, val: bool)

source

#### pub fn ex8(&self) -> bool

Environment call from U-mode or VU-mode

source

#### pub fn set_ex8(&mut self, val: bool)

source

#### pub fn ex12(&self) -> bool

Instruction page fault

source

#### pub fn set_ex12(&mut self, val: bool)

source

#### pub fn ex13(&self) -> bool

Load page fault

source

#### pub fn set_ex13(&mut self, val: bool)

source

#### pub fn ex15(&self) -> bool

Store/AMO page fault

source

#### pub fn set_ex15(&mut self, val: bool)

## Trait Implementations

source

### impl Clone for Hedeleg

source

#### fn clone(&self) -> Hedeleg

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

source

### impl Debug for Hedeleg

source

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

Formats the value using the given formatter. Read more

source

### impl Copy for Hedeleg

## Auto Trait Implementations

### impl RefUnwindSafe for Hedeleg

### impl Send for Hedeleg

### impl Sync for Hedeleg

### impl Unpin for Hedeleg

### impl UnwindSafe for Hedeleg

## Blanket Implementations

source

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

source

#### fn type_id(&self) -> TypeId

Gets the `TypeId` of `self`. Read more

source

### impl<T> Borrow<T> for T where
T: ?Sized,

const: unstable · source

#### fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more

source

### impl<T> BorrowMut<T> for T where
T: ?Sized,

const: unstable · source

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

Mutably borrows from an owned value. Read more

source

### impl<T> From<T> for T

const: unstable · source

#### fn from(t: T) -> T

Returns the argument unchanged.

source

### impl<T, U> Into<U> for T where
U: From<T>,

const: unstable · 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 T where
U: Into<T>,

#### type Error = Infallible

The type returned in the event of a conversion error.

const: unstable · source

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

Performs the conversion.

source

### impl<T, U> TryInto<U> for T where
U: TryFrom<T>,

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

The type returned in the event of a conversion error.

const: unstable · source

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

Performs the conversion.