Struct StringView
#[repr(C)]pub struct StringView {
pub ptr: *const i8,
pub len: u64,
}Fields§
§ptr: *const i8§len: u64Implementations§
§impl StringView
impl StringView
pub fn from_str(s: &KanziStr) -> StringView
Trait Implementations§
§impl Clone for StringView
impl Clone for StringView
§fn clone(&self) -> StringView
fn clone(&self) -> StringView
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 StringView
impl Debug for StringView
impl Copy for StringView
Auto Trait Implementations§
impl Freeze for StringView
impl RefUnwindSafe for StringView
impl !Send for StringView
impl !Sync for StringView
impl Unpin for StringView
impl UnwindSafe for StringView
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