#[repr(C)]pub struct cbw_StrSlice {
pub len: usize,
pub data: *mut i8,
}
Expand description
A ‘string slice’ Points to a mutable, non-zero-terminated, UTF-8 encoded string. Using rust’s string’s memory layout.
Fields§
§len: usize
§data: *mut i8
Implementations§
Source§impl cbw_StrSlice
impl cbw_StrSlice
pub fn empty() -> cbw_StrSlice
Trait Implementations§
Source§impl Clone for cbw_StrSlice
impl Clone for cbw_StrSlice
Source§fn clone(&self) -> cbw_StrSlice
fn clone(&self) -> cbw_StrSlice
Returns a copy 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 moreSource§impl Debug for cbw_StrSlice
impl Debug for cbw_StrSlice
Source§impl<'a> Into<&'a str> for cbw_StrSlice
impl<'a> Into<&'a str> for cbw_StrSlice
Source§impl Into<String> for cbw_StrSlice
impl Into<String> for cbw_StrSlice
impl Copy for cbw_StrSlice
Auto Trait Implementations§
impl Freeze for cbw_StrSlice
impl RefUnwindSafe for cbw_StrSlice
impl !Send for cbw_StrSlice
impl !Sync for cbw_StrSlice
impl Unpin for cbw_StrSlice
impl UnwindSafe for cbw_StrSlice
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