Lines Matching refs:and_then
24 self.to_i64().as_ref().and_then(ToPrimitive::to_isize) in to_isize()
31 self.to_i64().as_ref().and_then(ToPrimitive::to_i8) in to_i8()
38 self.to_i64().as_ref().and_then(ToPrimitive::to_i16) in to_i16()
45 self.to_i64().as_ref().and_then(ToPrimitive::to_i32) in to_i32()
70 self.to_u64().as_ref().and_then(ToPrimitive::to_usize) in to_usize()
77 self.to_u64().as_ref().and_then(ToPrimitive::to_u8) in to_u8()
84 self.to_u64().as_ref().and_then(ToPrimitive::to_u16) in to_u16()
91 self.to_u64().as_ref().and_then(ToPrimitive::to_u32) in to_u32()
117 self.to_f64().as_ref().and_then(ToPrimitive::to_f32) in to_f32()
131 None => self.to_u64().as_ref().and_then(ToPrimitive::to_f64), in to_f64()
416 n.to_i64().and_then(FromPrimitive::from_i64) in from_isize()
454 n.to_i64().and_then(FromPrimitive::from_i64) in from_i128()
461 n.to_u64().and_then(FromPrimitive::from_u64) in from_usize()
499 n.to_u64().and_then(FromPrimitive::from_u64) in from_u128()
519 None => n.to_u64().and_then(FromPrimitive::from_u64), in from_f64()