tock_registers::interfaces

Trait Debuggable

Source
pub trait Debuggable: Readable {
    // Provided method
    fn debug(&self) -> RegisterDebugValue<Self::T, Self::R>
       where Self::R: RegisterDebugInfo<Self::T> { ... }
}
Expand description

Debuggable is a trait for registers that support human-readable debug output with core::fmt::Debug. It extends the Readable trait and doesn’t require manual implementation.

This is implemented for the register when using the register_bitfields macro.

The debug method returns a value that implements core::fmt::Debug.

Provided Methods§

Source

fn debug(&self) -> RegisterDebugValue<Self::T, Self::R>
where Self::R: RegisterDebugInfo<Self::T>,

Returns a RegisterDebugValue that implements core::fmt::Debug, the debug information is extracted from <Register>::DebugInfo.

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§