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