IntoComptime

Trait IntoComptime 

Source
pub trait IntoComptime: Sized {
    // Provided method
    fn comptime(self) -> Self { ... }
}
Expand description

Trait for marking a function return value as comptime when the compiler can’t infer it.

Provided Methods§

Source

fn comptime(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.

Implementors§