Skip to main content

RequireCompilerTimeHardwareFeature

Struct RequireCompilerTimeHardwareFeature 

Source
pub struct RequireCompilerTimeHardwareFeature<Cur, Next> { /* private fields */ }
Expand description

Type level struct to represent the compiler time requirements for a kernel.

Trait Implementations§

Source§

impl<F: EvaluateHardwareFeature, N: EvaluateHardwareFeature> EvaluateHardwareFeature for RequireCompilerTimeHardwareFeature<F, N>

Source§

type Name = AndName<<F as EvaluateHardwareFeature>::Name, <N as EvaluateHardwareFeature>::Name>

The name of the feature.
Source§

type EnabledStatic = <<F as EvaluateHardwareFeature>::EnabledStatic as BitAnd<<N as EvaluateHardwareFeature>::EnabledStatic>>::Output

Whether the feature is possible to use at compile time.
Source§

type MustCheck = <<F as EvaluateHardwareFeature>::MustCheck as BitOr<<N as EvaluateHardwareFeature>::MustCheck>>::Output

Whether the feature must be checked before execution at runtime.
Source§

fn name() -> Self::Name

Get the name of the requirement.
Source§

fn met_runtime() -> bool

Check if the feature is available at runtime.

Auto Trait Implementations§

§

impl<Cur, Next> Freeze for RequireCompilerTimeHardwareFeature<Cur, Next>

§

impl<Cur, Next> RefUnwindSafe for RequireCompilerTimeHardwareFeature<Cur, Next>
where Cur: RefUnwindSafe, Next: RefUnwindSafe,

§

impl<Cur, Next> Send for RequireCompilerTimeHardwareFeature<Cur, Next>
where Cur: Send, Next: Send,

§

impl<Cur, Next> Sync for RequireCompilerTimeHardwareFeature<Cur, Next>
where Cur: Sync, Next: Sync,

§

impl<Cur, Next> Unpin for RequireCompilerTimeHardwareFeature<Cur, Next>
where Cur: Unpin, Next: Unpin,

§

impl<Cur, Next> UnsafeUnpin for RequireCompilerTimeHardwareFeature<Cur, Next>

§

impl<Cur, Next> UnwindSafe for RequireCompilerTimeHardwareFeature<Cur, Next>
where Cur: UnwindSafe, Next: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.