Trait drone_riscv::reg::RegHold[][src]

pub trait RegHold<'a, T, R>: 'a where
    T: RegTag,
    R: Reg<T>, 
{ pub fn val(&self) -> <R as Reg<T>>::Val;
pub fn set_val(&mut self, val: <R as Reg<T>>::Val); }

Exposed storage for register values.

A type implementing this trait should have public getters and setters to manipulate the protected data.

Required methods

pub fn val(&self) -> <R as Reg<T>>::Val[src]

Returns the opaque value.

pub fn set_val(&mut self, val: <R as Reg<T>>::Val)[src]

Replaces the opaque value.

Loading content...

Implementors

Loading content...