Struct emacs_multibyte::SingleChar
source · pub struct SingleChar(/* private fields */);Implementations§
source§impl SingleChar
impl SingleChar
pub const fn from_byte(x: u8) -> Self
pub const fn from_ascii(c: Char) -> Self
pub const fn try_as_ascii(&self) -> Option<Char>
pub const fn from_unicode(c: char) -> Self
pub const fn try_as_unicode(&self) -> Option<char>
sourcepub const unsafe fn from_u32(x: u32) -> Self
pub const unsafe fn from_u32(x: u32) -> Self
§Safety
x MUST be greater than Self::MAX_CHAR!
pub const fn try_from_u32(x: u32) -> Result<Self, u32>
pub const fn as_u32(&self) -> u32
pub const fn calculate_leading_code(&self) -> u8
pub const NULL: Self = _
pub const A: Self = _
Trait Implementations§
source§impl Arbitrary for SingleChar
impl Arbitrary for SingleChar
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.§type Strategy = BoxedStrategy<SingleChar>
type Strategy = BoxedStrategy<SingleChar>
The type of
Strategy used to generate values of type Self.source§fn arbitrary_with(_args: ()) -> Self::Strategy
fn arbitrary_with(_args: ()) -> Self::Strategy
source§impl Clone for SingleChar
impl Clone for SingleChar
source§fn clone(&self) -> SingleChar
fn clone(&self) -> SingleChar
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SingleChar
impl Debug for SingleChar
source§impl Display for SingleChar
impl Display for SingleChar
source§impl Hash for SingleChar
impl Hash for SingleChar
source§impl Ord for SingleChar
impl Ord for SingleChar
source§fn cmp(&self, other: &SingleChar) -> Ordering
fn cmp(&self, other: &SingleChar) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SingleChar
impl PartialEq for SingleChar
source§impl PartialOrd for SingleChar
impl PartialOrd for SingleChar
impl Copy for SingleChar
impl Eq for SingleChar
impl StructuralPartialEq for SingleChar
Auto Trait Implementations§
impl Freeze for SingleChar
impl RefUnwindSafe for SingleChar
impl Send for SingleChar
impl Sync for SingleChar
impl Unpin for SingleChar
impl UnwindSafe for SingleChar
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)