pub struct I128<const VAL: i128>;
Expand description
Marker type for passing const VAL: i128
as a type parameter.
Implementations§
Source§impl<const VAL: i128> I128<VAL>
impl<const VAL: i128> I128<VAL>
Sourcepub const fn eq<const OTHER: i128>(
self,
_other: I128<OTHER>,
) -> Result<TypeEq<I128<VAL>, I128<OTHER>>, TypeNe<I128<VAL>, I128<OTHER>>>
👎Deprecated since 1.8.0: superceeded by equals
method
pub const fn eq<const OTHER: i128>( self, _other: I128<OTHER>, ) -> Result<TypeEq<I128<VAL>, I128<OTHER>>, TypeNe<I128<VAL>, I128<OTHER>>>
equals
methodCompares self
and other
for equality.
Returns:
Ok(TypeEq)
: ifVAL == OTHER
Err(TypeNe)
: ifVAL != OTHER
Trait Implementations§
impl<const VAL: i128> Copy for I128<VAL>
Auto Trait Implementations§
impl<const VAL: i128> Freeze for I128<VAL>
impl<const VAL: i128> RefUnwindSafe for I128<VAL>
impl<const VAL: i128> Send for I128<VAL>
impl<const VAL: i128> Sync for I128<VAL>
impl<const VAL: i128> Unpin for I128<VAL>
impl<const VAL: i128> UnwindSafe for I128<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