Trait r3_core::kernel::cfg::CfgStatic

source ·
pub trait CfgStatic: CfgBase<System: KernelStatic> { }
Expand description

A subtrait of raw_cfg::CfgBase that implies Self::System: KernelStatic.

This trait by itself has no function, but it may help you keep your configuration functions clean by getting rid of trait bounds on C::System.

Example

const fn configure<C>(cfg: &mut C)
where
    C: ~const traits::CfgStatic,
{
    todo!()   
}

The above is equivalent to:

const fn configure<C>(cfg: &mut C)
where
    C: ~const traits::CfgBase,
    C::System: traits::KernelStatic,
{
    todo!()   
}

Implementors§

source§

impl<C> CfgStatic for Cwhere C: CfgBase, C::System: KernelStatic,