[][src]Trait drone_core::reg::RegRef

pub trait RegRef<'a, T: RegTag>: Reg<T> {
    type Hold: RegHold<'a, T, Self>;
    pub fn hold(&'a self, val: Self::Val) -> Self::Hold;

    pub fn default(&'a self) -> Self::Hold { ... }
}

Connects Reg with RegHold.

Associated Types

type Hold: RegHold<'a, T, Self>[src]

Exposed storage for register values.

See also Val.

Loading content...

Required methods

pub fn hold(&'a self, val: Self::Val) -> Self::Hold[src]

Creates a new exposed register value from val.

Loading content...

Provided methods

pub fn default(&'a self) -> Self::Hold[src]

Creates a new exposed register value, and initializes it with the reset value.

See also default_val.

Loading content...

Implementors

Loading content...