Skip to main content

IntoRuntime

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 Ordering

Source§

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

Source§

impl IntoRuntime for bool

Source§

fn __expand_runtime_method(self, _scope: &mut Scope) -> NativeExpand<Self>

Source§

impl IntoRuntime for f32

Source§

fn __expand_runtime_method(self, _scope: &mut Scope) -> NativeExpand<Self>

Source§

impl IntoRuntime for f64

Source§

fn __expand_runtime_method(self, _scope: &mut Scope) -> NativeExpand<Self>

Source§

impl IntoRuntime for i8

Source§

fn __expand_runtime_method(self, _scope: &mut Scope) -> NativeExpand<Self>

Source§

impl IntoRuntime for i16

Source§

fn __expand_runtime_method(self, _scope: &mut Scope) -> NativeExpand<Self>

Source§

impl IntoRuntime for i32

Source§

fn __expand_runtime_method(self, _scope: &mut Scope) -> NativeExpand<Self>

Source§

impl IntoRuntime for i64

Source§

fn __expand_runtime_method(self, _scope: &mut Scope) -> NativeExpand<Self>

Source§

impl IntoRuntime for isize

Source§

fn __expand_runtime_method(self, _scope: &mut Scope) -> NativeExpand<Self>

Source§

impl IntoRuntime for u8

Source§

fn __expand_runtime_method(self, _scope: &mut Scope) -> NativeExpand<Self>

Source§

impl IntoRuntime for u16

Source§

fn __expand_runtime_method(self, _scope: &mut Scope) -> NativeExpand<Self>

Source§

impl IntoRuntime for u32

Source§

fn __expand_runtime_method(self, _scope: &mut Scope) -> NativeExpand<Self>

Source§

impl IntoRuntime for u64

Source§

fn __expand_runtime_method(self, _scope: &mut Scope) -> NativeExpand<Self>

Source§

impl IntoRuntime for ()

Source§

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

Source§

impl IntoRuntime for usize

Source§

fn __expand_runtime_method(self, _scope: &mut Scope) -> NativeExpand<Self>

Source§

impl IntoRuntime for bf16

Source§

fn __expand_runtime_method(self, _scope: &mut Scope) -> NativeExpand<Self>

Source§

impl IntoRuntime for f16

Source§

fn __expand_runtime_method(self, _scope: &mut Scope) -> NativeExpand<Self>

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

Source§

impl<T> IntoRuntime for Option<T>

Source§

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

Implementors§