Struct PixelflowStringView
#[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§
§impl PixelflowStringView
impl PixelflowStringView
pub const fn from_rust_str(value: &str) -> PixelflowStringView
pub const fn from_rust_str(value: &str) -> PixelflowStringView
Creates a borrowed view from a Rust string.
Trait Implementations§
§impl Clone for PixelflowStringView
impl Clone for PixelflowStringView
§fn clone(&self) -> PixelflowStringView
fn clone(&self) -> PixelflowStringView
Returns a duplicate 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 more§impl Debug for PixelflowStringView
impl Debug for PixelflowStringView
§impl PartialEq for PixelflowStringView
impl PartialEq for PixelflowStringView
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