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