pub struct TextRef<'a>(pub &'a [u8]);
Expand description
A packet line representing text, which may include a trailing newline.
Tuple Fields§
§0: &'a [u8]
Implementations§
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for TextRef<'a>
impl<'de: 'a, 'a> Deserialize<'de> for TextRef<'a>
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<'a> Ord for TextRef<'a>
impl<'a> Ord for TextRef<'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for TextRef<'a>
impl<'a> PartialOrd for TextRef<'a>
impl<'a> Copy for TextRef<'a>
impl<'a> Eq for TextRef<'a>
impl<'a> StructuralPartialEq for TextRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for TextRef<'a>
impl<'a> RefUnwindSafe for TextRef<'a>
impl<'a> Send for TextRef<'a>
impl<'a> Sync for TextRef<'a>
impl<'a> Unpin for TextRef<'a>
impl<'a> UnwindSafe for TextRef<'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