Trait kernel::utilities::registers::interfaces::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.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> Debuggable for T
where T: Readable,