Struct typewit::const_marker::U128
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)