pub struct Utf8StrRef<'lt>(pub &'lt [u8]);
Expand description
MessagePack Utf8 String Reference type
Tuple Fields§
§0: &'lt [u8]
Implementations§
Trait Implementations§
Source§impl<'lt> Clone for Utf8StrRef<'lt>
impl<'lt> Clone for Utf8StrRef<'lt>
Source§fn clone(&self) -> Utf8StrRef<'lt>
fn clone(&self) -> Utf8StrRef<'lt>
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 Utf8StrRef<'_>
impl Debug for Utf8StrRef<'_>
Source§impl<'de> Deserialize<'de> for Utf8StrRef<'de>
impl<'de> Deserialize<'de> for Utf8StrRef<'de>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Utf8StrRef<'_>
impl Display for Utf8StrRef<'_>
Source§impl<'a> From<&'a [u8]> for Utf8StrRef<'a>
impl<'a> From<&'a [u8]> for Utf8StrRef<'a>
Source§impl<'a> From<&'a Utf8Str> for Utf8StrRef<'a>
impl<'a> From<&'a Utf8Str> for Utf8StrRef<'a>
Source§impl<'a> From<&Utf8StrRef<'a>> for Utf8Str
impl<'a> From<&Utf8StrRef<'a>> for Utf8Str
Source§fn from(s: &Utf8StrRef<'a>) -> Self
fn from(s: &Utf8StrRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a str> for Utf8StrRef<'a>
impl<'a> From<&'a str> for Utf8StrRef<'a>
Source§impl<'lt> PartialEq for Utf8StrRef<'lt>
impl<'lt> PartialEq for Utf8StrRef<'lt>
Source§impl<'lt> Serialize for Utf8StrRef<'lt>
impl<'lt> Serialize for Utf8StrRef<'lt>
impl<'lt> StructuralPartialEq for Utf8StrRef<'lt>
Auto Trait Implementations§
impl<'lt> Freeze for Utf8StrRef<'lt>
impl<'lt> RefUnwindSafe for Utf8StrRef<'lt>
impl<'lt> Send for Utf8StrRef<'lt>
impl<'lt> Sync for Utf8StrRef<'lt>
impl<'lt> Unpin for Utf8StrRef<'lt>
impl<'lt> UnwindSafe for Utf8StrRef<'lt>
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