Searched refs:from_i64 (Results 1 – 9 of 9) sorted by relevance
58 macro_rules! from_i64( macro68 from_i64!(i8);69 from_i64!(i16);70 from_i64!(i32);71 from_i64!(u8);72 from_i64!(u16);73 from_i64!(u32);
416 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() method454 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);
15 assert!(SomeEnum::from_i64(-1).is_none()); in test_trivial_numeric_casts()
16 assert!(SomeEnum::from_i64(-1).is_none()); in test_unused_qualifications()
262 fn from_i64(n: i64) -> Option<Self> { in from_primitive()263 <#inner_ty as #import::FromPrimitive>::from_i64(n).map(#name) in from_primitive()360 fn from_i64(#from_i64_var: i64) -> Option<Self> { in from_primitive()368 Self::from_i64(n as i64) in from_primitive()
330 fn from_i64(n: i64) -> Option<Self> { in newtype_from_primitive() method331 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()
792 fn from_i64(n: i64) -> Option<Weekday> { in from_i64() method1101 fn from_i64(n: i64) -> Option<Month> { in from_i64() method1461 let dec_opt = Month::from_i64(12); in test_month_enum_primitive_parse()
687 fn from_i64(n: i64) -> Option<Self> { in from_i64() method
75 fn from_i64(n: i64) -> Option<Self> { in from_i64() method