Lines Matching defs:U
443 /// Both `T` and `U` must be of same signedness, and `U` must be at least as large as
459 pub fn cast<U>(self) -> Bounded<U, N>
461 U: TryFrom<T> + Integer,
463 U: Integer<Signedness = T::Signedness>,
465 // SAFETY: The converted value is represented using `N` bits, `U` can contain `N` bits, and
466 // `U` and `T` have the same sign, hence this conversion cannot fail.
467 let value = unsafe { U::try_from(self.get()).unwrap_unchecked() };
558 impl<T, U, const N: u32> TryIntoBounded<T, N> for U
561 U: TryInto<T>,
570 impl<T, U, const N: u32, const M: u32> PartialEq<Bounded<U, M>> for Bounded<T, N>
573 U: Integer,
574 T: PartialEq<U>,
576 fn eq(&self, other: &Bounded<U, M>) -> bool {
583 impl<T, U, const N: u32, const M: u32> PartialOrd<Bounded<U, M>> for Bounded<T, N>
586 U: Integer,
587 T: PartialOrd<U>,
589 fn partial_cmp(&self, other: &Bounded<U, M>) -> Option<cmp::Ordering> {