1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use crate::*; pub trait Float: FromFloatLiteral + SignedPrim + Root + Trig<Output = Self> + ATrig<Output = Self> + Hyper<Output = Self> + AHyper<Output = Self> { } impl Float for f32 {} impl Float for f64 {}