Lines Matching refs:Option
242 fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
275 fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
289 fn partial_cmp(&self, other: &$native) -> Option<Ordering> {
1069 fn checked_add(self, rhs: Self) -> Option<Self>; in checked_add()
1072 fn checked_div(self, rhs: Self) -> Option<Self>; in checked_div()
1075 fn checked_mul(self, rhs: Self) -> Option<Self>; in checked_mul()
1078 fn checked_rem(self, rhs: Self) -> Option<Self>; in checked_rem()
1081 fn checked_sub(self, rhs: Self) -> Option<Self>; in checked_sub()
1084 fn checked_shl(self, rhs: Self) -> Option<Self>; in checked_shl()
1087 fn checked_shr(self, rhs: Self) -> Option<Self>; in checked_shr()
1208 fn checked_add(self, rhs: Self) -> Option<Self> { self.checked_add(rhs) }
1209 fn checked_div(self, rhs: Self) -> Option<Self> { self.checked_div(rhs) }
1210 fn checked_mul(self, rhs: Self) -> Option<Self> { self.checked_mul(rhs) }
1211 fn checked_rem(self, rhs: Self) -> Option<Self> { self.checked_rem(rhs) }
1212 fn checked_sub(self, rhs: Self) -> Option<Self> { self.checked_sub(rhs) }
1213 …fn checked_shl(self, rhs: Self) -> Option<Self> { self.checked_shl(rhs.try_into().unwrap_or(u32::M…
1214 …fn checked_shr(self, rhs: Self) -> Option<Self> { self.checked_shr(rhs.try_into().unwrap_or(u32::M…
1218 fn checked_add(self, rhs: Self) -> Option<Self> { Some(self + rhs) }
1219 fn checked_div(self, rhs: Self) -> Option<Self> { Some(self / rhs) }
1220 fn checked_mul(self, rhs: Self) -> Option<Self> { Some(self * rhs) }
1221 fn checked_rem(self, rhs: Self) -> Option<Self> { Some(self % rhs) }
1222 fn checked_sub(self, rhs: Self) -> Option<Self> { Some(self - rhs) }
1223 fn checked_shl(self, _rhs: Self) -> Option<Self> { unimplemented!() }
1224 fn checked_shr(self, _rhs: Self) -> Option<Self> { unimplemented!() }
1399 op_n_n_checked: Option<FNNChecked>, in test_ops_impls()
1400 op_assign: Option<(FATT, FATN, FANT)>, in test_ops_impls()
1407 FNNChecked: Fn(T::Native, T::Native) -> Option<T::Native>, in test_ops_impls()
1492 … let mut op_native_checked = None::<fn(T::Native, T::Native) -> Option<T::Native>>; in test_ops_impls()
1528 None::<fn(T::Native, T::Native) -> Option<T::Native>>, in test_ops_impls()