Trait Register

Source
pub trait Register:
    Debug
    + 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) -> RegisterId;
}

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) -> RegisterId

Unique identifier for this Register.

MUST be in the range [0, 0x7fff_ffff]

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§