pub struct Utf8StringRef<'a>(/* private fields */);Expand description
Zero-copy borrowed UTF8String
Implementations§
Trait Implementations§
Source§impl<'a> Clone for Utf8StringRef<'a>
impl<'a> Clone for Utf8StringRef<'a>
Source§fn clone(&self) -> Utf8StringRef<'a>
fn clone(&self) -> Utf8StringRef<'a>
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 moreimpl<'a> Copy for Utf8StringRef<'a>
Source§impl<'a> Debug for Utf8StringRef<'a>
impl<'a> Debug for Utf8StringRef<'a>
Source§impl<'a> Decode<'a> for Utf8StringRef<'a>
impl<'a> Decode<'a> for Utf8StringRef<'a>
Source§impl<'a> Encode for Utf8StringRef<'a>
impl<'a> Encode for Utf8StringRef<'a>
impl<'a> Eq for Utf8StringRef<'a>
Source§impl<'a> PartialEq for Utf8StringRef<'a>
impl<'a> PartialEq for Utf8StringRef<'a>
Source§fn eq(&self, other: &Utf8StringRef<'a>) -> bool
fn eq(&self, other: &Utf8StringRef<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for Utf8StringRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for Utf8StringRef<'a>
impl<'a> RefUnwindSafe for Utf8StringRef<'a>
impl<'a> Send for Utf8StringRef<'a>
impl<'a> Sync for Utf8StringRef<'a>
impl<'a> Unpin for Utf8StringRef<'a>
impl<'a> UnsafeUnpin for Utf8StringRef<'a>
impl<'a> UnwindSafe for Utf8StringRef<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> TagForOptional for Twhere
T: Tagged,
impl<T> TagForOptional for Twhere
T: Tagged,
Source§fn optional_tag() -> Option<Tag>
fn optional_tag() -> Option<Tag>
Return the expected tag for optional-field peek-ahead, or
None if
the type accepts multiple tags (CHOICE) or any tag (ANY / Element<'a>).