kernel::config

Trait CfgControl

Source
pub trait CfgControl<const ENABLED: bool> {
    type Out: ?Sized;
}
Expand description

Trait allows selecting type based on a const param

Required Associated Types§

Implementations on Foreign Types§

Source§

impl<T: ?Sized, U: ?Sized> CfgControl<false> for (*const T, *const U)

Source§

type Out = U

Source§

impl<T: ?Sized, U: ?Sized> CfgControl<true> for (*const T, *const U)

Source§

type Out = T

Implementors§