pub struct TailStr<'a> { /* private fields */ }Expand description
Borrowed final UTF-8 tail.
The raw bytes consume the remaining dynamic-tail payload. UTF-8 is checked
only when the caller asks for &str, so binary-safe inspection and strict
text validation are both available without copying.
Implementations§
Trait Implementations§
impl<'a> Copy for TailStr<'a>
impl<'a> Eq for TailStr<'a>
impl<'a> StructuralPartialEq for TailStr<'a>
Auto Trait Implementations§
impl<'a> Freeze for TailStr<'a>
impl<'a> RefUnwindSafe for TailStr<'a>
impl<'a> Send for TailStr<'a>
impl<'a> Sync for TailStr<'a>
impl<'a> Unpin for TailStr<'a>
impl<'a> UnsafeUnpin for TailStr<'a>
impl<'a> UnwindSafe for TailStr<'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