pub trait Number:
Copy
+ Send
+ Sync
+ IsNone
+ Sized
+ Default
+ Num
+ AddAssign
+ SubAssign
+ MulAssign
+ DivAssign
+ PartialOrd
+ MulAdd
+ Cast<f64>
+ Cast<f32>
+ Cast<usize>
+ Cast<i32>
+ Cast<i64>
+ 'static {
Show 17 methods
// Required methods
fn min_() -> Self;
fn max_() -> Self;
fn abs(self) -> Self;
// Provided methods
fn ceil(self) -> Self { ... }
fn floor(self) -> Self { ... }
fn min_with(self, other: Self) -> Self { ... }
fn max_with(self, other: Self) -> Self { ... }
fn f32(self) -> f32 { ... }
fn f64(self) -> f64 { ... }
fn i32(self) -> i32 { ... }
fn i64(self) -> i64 { ... }
fn usize(self) -> usize { ... }
fn fromas<U>(v: U) -> Self
where U: Number + Cast<Self>,
Self: 'static { ... }
fn to<T: Number>(self) -> T
where Self: Cast<T> { ... }
fn kh_sum(self, v: Self, c: &mut Self) -> Self { ... }
fn n_add(self, other: Self, n: &mut usize) -> Self { ... }
fn n_prod(self, other: Self, n: &mut usize) -> Self { ... }
}Required Methods§
Provided Methods§
fn ceil(self) -> Self
fn floor(self) -> Self
fn min_with(self, other: Self) -> Self
fn max_with(self, other: Self) -> Self
fn f32(self) -> f32
fn f64(self) -> f64
fn i32(self) -> i32
fn i64(self) -> i64
fn usize(self) -> usize
fn kh_sum(self, v: Self, c: &mut Self) -> Self
Object Safety§
This trait is not object safe.