Home
last modified time | relevance | path

Searched refs:NumCast (Results 1 – 7 of 7) sorted by relevance

/third_party/rust/crates/num-traits/src/
Dcast.rs686 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> {
Dreal.rs5 use {Float, Num, NumCast};
17 pub trait Real: Num + Copy + NumCast + PartialOrd + Neg<Output = Self> {
Dint.rs6 use {Num, NumCast};
38 + NumCast
Dfloat.rs8 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> {
Dlib.rs37 pub use cast::{cast, AsPrimitive, FromPrimitive, NumCast, ToPrimitive};
/third_party/rust/crates/num-traits/tests/
Dcast.rs76 fn require_numcast<T: NumCast>(_: &T) {} in wrapping_is_numcast()
/third_party/rust/crates/num-traits/
DRELEASES.md187 function and the traits `NumCast`, `FromPrimitive`, and `ToPrimitive`.