pub struct Str<'a>(pub &'a [u8]);
Expand description
A string object (any byte sequence).
This is written as (Thing)
.
Tuple Fields§
§0: &'a [u8]
Trait Implementations§
source§impl<'a> Ord for Str<'a>
impl<'a> Ord for Str<'a>
source§impl<'a> PartialOrd for Str<'a>
impl<'a> PartialOrd for Str<'a>
impl<'a> Copy for Str<'a>
impl<'a> Eq for Str<'a>
impl<'a> StructuralPartialEq for Str<'a>
Auto Trait Implementations§
impl<'a> Freeze for Str<'a>
impl<'a> RefUnwindSafe for Str<'a>
impl<'a> Send for Str<'a>
impl<'a> Sync for Str<'a>
impl<'a> Unpin for Str<'a>
impl<'a> UnwindSafe for Str<'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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)