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

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>[src]

Exposed storage for register values.

See also Val.

Loading content...

Required methods

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

Creates a new exposed register value from val.

Loading content...

Provided methods

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