comptime_type!() { /* proc-macro */ }
Expand description
Makes the function return a compile time value Useful in a cube trait to have a part of the trait return comptime values
ยงExample
#use cubecl_macros::cube;
#[cube]
fn do_stuff(#[comptime] input: u32) -> comptime_type!(u32) {
input + 5
}
TODO: calling a trait method returning comptime_type from within another trait method does not work