#[repr(C)]pub struct StringView {
pub c_str: *const u8,
pub length: usize,
}Fields§
§c_str: *const u8§length: usizeTrait Implementations§
Source§impl Clone for StringView
impl Clone for StringView
Source§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 moreSource§impl Debug for StringView
impl Debug for StringView
Source§impl PartialEq for StringView
impl PartialEq for StringView
impl Copy for StringView
impl Eq for StringView
impl StructuralPartialEq 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