Trait IntoRuntime

Source
pub trait IntoRuntime: CubeType + Sized {
    // Required method
    fn __expand_runtime_method(self, scope: &mut Scope) -> Self::ExpandType;

    // Provided method
    fn runtime(self) -> Self { ... }
}
Expand description

Trait useful to convert a comptime value into runtime value.

Required Methods§

Source

fn __expand_runtime_method(self, scope: &mut Scope) -> Self::ExpandType

Provided Methods§

Source

fn runtime(self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IntoRuntime for bool

Source§

impl IntoRuntime for f32

Source§

impl IntoRuntime for f64

Source§

impl IntoRuntime for i8

Source§

impl IntoRuntime for i16

Source§

impl IntoRuntime for i32

Source§

impl IntoRuntime for i64

Source§

impl IntoRuntime for u8

Source§

impl IntoRuntime for u16

Source§

impl IntoRuntime for u32

Source§

impl IntoRuntime for u64

Source§

impl IntoRuntime for ()

Source§

fn __expand_runtime_method(self, scope: &mut Scope) -> Self::ExpandType

Source§

impl IntoRuntime for bf16

Source§

impl IntoRuntime for f16

Source§

impl<P0: IntoRuntime> IntoRuntime for (P0,)

Source§

fn __expand_runtime_method(self, scope: &mut Scope) -> Self::ExpandType

Source§

impl<P0: IntoRuntime, P1: IntoRuntime> IntoRuntime for (P0, P1)

Source§

fn __expand_runtime_method(self, scope: &mut Scope) -> Self::ExpandType

Source§

impl<P0: IntoRuntime, P1: IntoRuntime, P2: IntoRuntime> IntoRuntime for (P0, P1, P2)

Source§

fn __expand_runtime_method(self, scope: &mut Scope) -> Self::ExpandType

Source§

impl<P0: IntoRuntime, P1: IntoRuntime, P2: IntoRuntime, P3: IntoRuntime> IntoRuntime for (P0, P1, P2, P3)

Source§

fn __expand_runtime_method(self, scope: &mut Scope) -> Self::ExpandType

Source§

impl<P0: IntoRuntime, P1: IntoRuntime, P2: IntoRuntime, P3: IntoRuntime, P4: IntoRuntime> IntoRuntime for (P0, P1, P2, P3, P4)

Source§

fn __expand_runtime_method(self, scope: &mut Scope) -> Self::ExpandType

Source§

impl<P0: IntoRuntime, P1: IntoRuntime, P2: IntoRuntime, P3: IntoRuntime, P4: IntoRuntime, P5: IntoRuntime> IntoRuntime for (P0, P1, P2, P3, P4, P5)

Source§

fn __expand_runtime_method(self, scope: &mut Scope) -> Self::ExpandType

Source§

impl<P0: IntoRuntime, P1: IntoRuntime, P2: IntoRuntime, P3: IntoRuntime, P4: IntoRuntime, P5: IntoRuntime, P6: IntoRuntime> IntoRuntime for (P0, P1, P2, P3, P4, P5, P6)

Source§

fn __expand_runtime_method(self, scope: &mut Scope) -> Self::ExpandType

Source§

impl<P0: IntoRuntime, P1: IntoRuntime, P2: IntoRuntime, P3: IntoRuntime, P4: IntoRuntime, P5: IntoRuntime, P6: IntoRuntime, P7: IntoRuntime> IntoRuntime for (P0, P1, P2, P3, P4, P5, P6, P7)

Source§

fn __expand_runtime_method(self, scope: &mut Scope) -> Self::ExpandType

Source§

impl<P0: IntoRuntime, P1: IntoRuntime, P2: IntoRuntime, P3: IntoRuntime, P4: IntoRuntime, P5: IntoRuntime, P6: IntoRuntime, P7: IntoRuntime, P8: IntoRuntime> IntoRuntime for (P0, P1, P2, P3, P4, P5, P6, P7, P8)

Source§

fn __expand_runtime_method(self, scope: &mut Scope) -> Self::ExpandType

Source§

impl<P0: IntoRuntime, P1: IntoRuntime, P2: IntoRuntime, P3: IntoRuntime, P4: IntoRuntime, P5: IntoRuntime, P6: IntoRuntime, P7: IntoRuntime, P8: IntoRuntime, P9: IntoRuntime> IntoRuntime for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9)

Source§

fn __expand_runtime_method(self, scope: &mut Scope) -> Self::ExpandType

Source§

impl<P0: IntoRuntime, P1: IntoRuntime, P2: IntoRuntime, P3: IntoRuntime, P4: IntoRuntime, P5: IntoRuntime, P6: IntoRuntime, P7: IntoRuntime, P8: IntoRuntime, P9: IntoRuntime, P10: IntoRuntime> IntoRuntime for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10)

Source§

fn __expand_runtime_method(self, scope: &mut Scope) -> Self::ExpandType

Source§

impl<P0: IntoRuntime, P1: IntoRuntime, P2: IntoRuntime, P3: IntoRuntime, P4: IntoRuntime, P5: IntoRuntime, P6: IntoRuntime, P7: IntoRuntime, P8: IntoRuntime, P9: IntoRuntime, P10: IntoRuntime, P11: IntoRuntime> IntoRuntime for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11)

Source§

fn __expand_runtime_method(self, scope: &mut Scope) -> Self::ExpandType

Implementors§

Source§

impl IntoRuntime for flex32

Source§

impl IntoRuntime for tf32

Source§

impl<const POS: u8> IntoRuntime for FloatExpand<POS>

Source§

impl<const POS: u8> IntoRuntime for IntExpand<POS>