#[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§
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