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