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§
fn __expand_runtime_method(self, scope: &mut Scope) -> Self::ExpandType
Provided Methods§
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.