Home
last modified time | relevance | path

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

/external/rust/crates/rusqlite/src/types/
Dvalue.rs58 macro_rules! from_i64( macro
68 from_i64!(i8);
69 from_i64!(i16);
70 from_i64!(i32);
71 from_i64!(u8);
72 from_i64!(u16);
73 from_i64!(u32);
/external/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);
/external/rust/crates/num-derive/tests/
Dissue-6.rs15 assert!(SomeEnum::from_i64(-1).is_none()); in test_trivial_numeric_casts()
Dissue-9.rs16 assert!(SomeEnum::from_i64(-1).is_none()); in test_unused_qualifications()
/external/rust/crates/num-derive/src/
Dlib.rs262 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()
/external/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()
/external/rust/crates/chrono/src/
Dlib.rs792 fn from_i64(n: i64) -> Option<Weekday> { in from_i64() method
1101 fn from_i64(n: i64) -> Option<Month> { in from_i64() method
1461 let dec_opt = Month::from_i64(12); in test_month_enum_primitive_parse()
/external/rust/crates/half/src/
Dbfloat.rs687 fn from_i64(n: i64) -> Option<Self> { in from_i64() method
Dbinary16.rs75 fn from_i64(n: i64) -> Option<Self> { in from_i64() method