Home
last modified time | relevance | path

Searched refs:from_i64 (Results 1 – 2 of 2) sorted by relevance

/third_party/rust/crates/num-traits/src/
Dcast.rs416 n.to_i64().and_then(FromPrimitive::from_i64) in from_isize()
423 FromPrimitive::from_i64(From::from(n)) in from_i8()
430 FromPrimitive::from_i64(From::from(n)) in from_i16()
437 FromPrimitive::from_i64(From::from(n)) in from_i32()
442 fn from_i64(n: i64) -> Option<Self>; in from_i64() method
454 n.to_i64().and_then(FromPrimitive::from_i64) in from_i128()
518 Some(i) => FromPrimitive::from_i64(i), in from_f64()
545 fn from_i64(n: i64) -> Option<$T> {
658 fn from_i64(i64);
/third_party/rust/crates/num-traits/tests/
Dcast.rs330 fn from_i64(n: i64) -> Option<Self> { in newtype_from_primitive() method
331 T::from_i64(n).map(New) in newtype_from_primitive()
349 assert_eq_from!(from_i8 from_i16 from_i32 from_i64 from_isize); in newtype_from_primitive()