Skip to main content

WithBase

Trait WithBase 

Source
pub trait WithBase {
    type BaseFamily;

    // Provided method
    fn of<B: RegisterBase<Self::BaseFamily>>() -> RelativeRegisterLoc<Self, B>
       where Self: Register { ... }
}
Expand description

Trait implemented by all registers that are relative to a base.

Required Associated Types§

Source

type BaseFamily

Family of bases applicable to this register.

Provided Methods§

Source

fn of<B: RegisterBase<Self::BaseFamily>>() -> RelativeRegisterLoc<Self, B>
where Self: Register,

Returns the absolute location of this type when using B as its base.

Implementors§