Searched refs:NumCast (Results 1 – 7 of 7) sorted by relevance
/third_party/rust/crates/num-traits/src/ |
D | cast.rs | 686 pub fn cast<T: NumCast, U: NumCast>(n: T) -> Option<U> { in cast() argument 687 NumCast::from(n) in cast() 691 pub trait NumCast: Sized + ToPrimitive { interface 709 impl NumCast for $T { impl 738 impl<T: NumCast> NumCast for Wrapping<T> {
|
D | real.rs | 5 use {Float, Num, NumCast}; 17 pub trait Real: Num + Copy + NumCast + PartialOrd + Neg<Output = Self> {
|
D | int.rs | 6 use {Num, NumCast}; 38 + NumCast
|
D | float.rs | 8 use {Num, NumCast, ToPrimitive}; 16 pub trait FloatCore: Num + NumCast + Neg<Output = Self> + PartialOrd + Copy { 962 pub trait Float: Num + Copy + NumCast + PartialOrd + Neg<Output = Self> {
|
D | lib.rs | 37 pub use cast::{cast, AsPrimitive, FromPrimitive, NumCast, ToPrimitive};
|
/third_party/rust/crates/num-traits/tests/ |
D | cast.rs | 76 fn require_numcast<T: NumCast>(_: &T) {} in wrapping_is_numcast()
|
/third_party/rust/crates/num-traits/ |
D | RELEASES.md | 187 function and the traits `NumCast`, `FromPrimitive`, and `ToPrimitive`.
|