Struct typewit::const_marker::Isize
source · 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
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
)