#[repr(C)]pub struct Codepoints {
pub ptr: *const u32,
pub len: usize,
}Expand description
A borrowed list of Unicode scalar values.
Values are encoded as uint32_t scalar values. The memory is not owned by this struct. The pointer is only valid for the lifetime documented by the API that consumes or produces it.
APIs may document special handling for NULL + len 0, such as “use defaults”.
Fields§
§ptr: *const u32Pointer to Unicode scalar values.
len: usizeNumber of entries in ptr.
Trait Implementations§
Source§impl Clone for Codepoints
impl Clone for Codepoints
Source§fn clone(&self) -> Codepoints
fn clone(&self) -> Codepoints
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Codepoints
Source§impl Debug for Codepoints
impl Debug for Codepoints
Auto Trait Implementations§
impl !Send for Codepoints
impl !Sync for Codepoints
impl Freeze for Codepoints
impl RefUnwindSafe for Codepoints
impl Unpin for Codepoints
impl UnsafeUnpin for Codepoints
impl UnwindSafe for Codepoints
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