new const trait syntax
This commit is contained in:
@@ -44,8 +44,7 @@ impl<T: ColorNum> Color<T> {
|
||||
}
|
||||
}
|
||||
|
||||
#[const_trait]
|
||||
pub trait F32Conversion {
|
||||
pub const trait F32Conversion {
|
||||
fn to(self) -> f32;
|
||||
fn from(x: f32) -> Self;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user