#[repr(C)]pub struct PixelflowStringView {
pub ptr: *const u8,
pub len: usize,
}Expand description
Borrowed UTF-8 string passed across ABI calls.
Fields§
§ptr: *const u8Pointer to UTF-8 bytes.
len: usizeByte length.
Implementations§
Source§impl PixelflowStringView
impl PixelflowStringView
Sourcepub const fn from_rust_str(value: &str) -> Self
pub const fn from_rust_str(value: &str) -> Self
Creates a borrowed view from a Rust string.
Trait Implementations§
Source§impl Clone for PixelflowStringView
impl Clone for PixelflowStringView
Source§fn clone(&self) -> PixelflowStringView
fn clone(&self) -> PixelflowStringView
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 moreSource§impl Debug for PixelflowStringView
impl Debug for PixelflowStringView
Source§impl PartialEq for PixelflowStringView
impl PartialEq for PixelflowStringView
Source§fn eq(&self, other: &PixelflowStringView) -> bool
fn eq(&self, other: &PixelflowStringView) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PixelflowStringView
impl Eq for PixelflowStringView
impl StructuralPartialEq for PixelflowStringView
Auto Trait Implementations§
impl Freeze for PixelflowStringView
impl RefUnwindSafe for PixelflowStringView
impl !Send for PixelflowStringView
impl !Sync for PixelflowStringView
impl Unpin for PixelflowStringView
impl UnsafeUnpin for PixelflowStringView
impl UnwindSafe for PixelflowStringView
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