pub struct U128<const VAL: u128>;
Expand description
Marker type for passing const VAL: u128
as a type parameter.
Implementations§
Source§impl<const VAL: u128> U128<VAL>
impl<const VAL: u128> U128<VAL>
Sourcepub const fn eq<const OTHER: u128>(
self,
_other: U128<OTHER>,
) -> Result<TypeEq<U128<VAL>, U128<OTHER>>, TypeNe<U128<VAL>, U128<OTHER>>>
👎Deprecated since 1.8.0: superceeded by equals
method
pub const fn eq<const OTHER: u128>( self, _other: U128<OTHER>, ) -> Result<TypeEq<U128<VAL>, U128<OTHER>>, TypeNe<U128<VAL>, U128<OTHER>>>
equals
methodCompares self
and other
for equality.
Returns:
Ok(TypeEq)
: ifVAL == OTHER
Err(TypeNe)
: ifVAL != OTHER
Trait Implementations§
impl<const VAL: u128> Copy for U128<VAL>
Auto Trait Implementations§
impl<const VAL: u128> Freeze for U128<VAL>
impl<const VAL: u128> RefUnwindSafe for U128<VAL>
impl<const VAL: u128> Send for U128<VAL>
impl<const VAL: u128> Sync for U128<VAL>
impl<const VAL: u128> Unpin for U128<VAL>
impl<const VAL: u128> UnwindSafe for U128<VAL>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more