[][src]Trait drone_core::reg::RegHold

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

Exposed storage for register values.

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

Required methods

fn val(&self) -> R::Val

Returns the opaque value.

fn set_val(&mut self, val: R::Val)

Replaces the opaque value.

Loading content...

Implementors

Loading content...