Struct object::read::util::ByteString
source · pub(crate) struct ByteString<'data>(pub &'data [u8]);
Expand description
A newtype for byte strings.
For byte slices that are strings of an unknown encoding.
Provides a Debug
implementation that interprets the bytes as UTF-8.
Tuple Fields§
§0: &'data [u8]
Trait Implementations§
source§impl<'data> Clone for ByteString<'data>
impl<'data> Clone for ByteString<'data>
source§fn clone(&self) -> ByteString<'data>
fn clone(&self) -> ByteString<'data>
Returns a copy 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<'data> Debug for ByteString<'data>
impl<'data> Debug for ByteString<'data>
source§impl<'data> Default for ByteString<'data>
impl<'data> Default for ByteString<'data>
source§fn default() -> ByteString<'data>
fn default() -> ByteString<'data>
Returns the “default value” for a type. Read more
source§impl<'data> PartialEq for ByteString<'data>
impl<'data> PartialEq for ByteString<'data>
impl<'data> Copy for ByteString<'data>
impl<'data> Eq for ByteString<'data>
impl<'data> StructuralPartialEq for ByteString<'data>
Auto Trait Implementations§
impl<'data> Freeze for ByteString<'data>
impl<'data> RefUnwindSafe for ByteString<'data>
impl<'data> Send for ByteString<'data>
impl<'data> Sync for ByteString<'data>
impl<'data> Unpin for ByteString<'data>
impl<'data> UnwindSafe for ByteString<'data>
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
)