new const trait syntax

This commit is contained in:
2025-11-10 22:10:38 -05:00
parent 1c49db1b89
commit ebff93bec9
4 changed files with 31 additions and 8 deletions

View File

@@ -1,13 +1,11 @@
use std::ops::*;
#[const_trait]
pub trait LerpUtil {
pub const trait LerpUtil {
fn lerp(self, from: Self, to: Self) -> Self;
fn lerp_inv(self, from: Self, to: Self) -> Self;
}
#[const_trait]
pub trait DivOr {
pub const trait DivOr {
fn div_or(self, rhs: Self, other: Self) -> Self;
}