pub enum Utf32 {}Expand description
Namespace for UTF-32 constants and code-unit classification helpers.
Implementations§
Source§impl Utf32
impl Utf32
Sourcepub const MAX_UNITS_PER_CHAR: usize = 1
pub const MAX_UNITS_PER_CHAR: usize = 1
Maximum number of UTF-32 code units needed for one Unicode scalar value.
Sourcepub const MAX_BYTES_PER_CHAR: usize = 4
pub const MAX_BYTES_PER_CHAR: usize = 4
Maximum number of serialized UTF-32 bytes needed for one Unicode scalar value.
Sourcepub const fn is_valid_unit(unit: u32) -> bool
pub const fn is_valid_unit(unit: u32) -> bool
Auto Trait Implementations§
impl Freeze for Utf32
impl RefUnwindSafe for Utf32
impl Send for Utf32
impl Sync for Utf32
impl Unpin for Utf32
impl UnsafeUnpin for Utf32
impl UnwindSafe for Utf32
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