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

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

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

Connects Reg with RegHold.

Associated Types

type Hold: RegHold<'a, T, Self>

Exposed storage for register values.

See also Val.

Loading content...

Required methods

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

Creates a new exposed register value from val.

Loading content...

Provided methods

fn default(&'a self) -> Self::Hold

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

See also default_val.

Loading content...

Implementors

Loading content...