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

# Struct riscv::register::hcounteren::Hcounteren

source · [−]

    pub struct Hcounteren { /* private fields */ }

## Implementations

source

### impl Hcounteren

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

## Trait Implementations

source

### impl Clone for Hcounteren

source

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

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 Hcounteren

source

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

Formats the value using the given formatter. Read more

source

### impl Copy for Hcounteren

## Auto Trait Implementations

### impl RefUnwindSafe for Hcounteren

### impl Send for Hcounteren

### impl Sync for Hcounteren

### impl Unpin for Hcounteren

### impl UnwindSafe for Hcounteren

## 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.