Trait r3::kernel::traits::CfgStatic

source ·
pub trait CfgStatic: CfgBasewhere
    Self::System: KernelStatic<Self::System>,{ }
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 as CfgBase>::System: KernelStatic<<C as CfgBase>::System>,