pub trait Register: Sized + Clone + Copy + Hash + Eq {
    type InfoType: RegisterInfo<RegType = Self>;

    // Required methods
    fn name(&self) -> Cow<'_, str>;
    fn info(&self) -> Self::InfoType;
    fn id(&self) -> u32;
}

Required Associated Types§

source

type InfoType: RegisterInfo<RegType = Self>

Required Methods§

source

fn name(&self) -> Cow<'_, str>

source

fn info(&self) -> Self::InfoType

source

fn id(&self) -> u32

Unique identifier for this Register.

MUST be in the range [0, 0x7fff_ffff]

Object Safety§

This trait is not object safe.

Implementors§