Enum sea_streamer_types::BytesOrStr
source · pub enum BytesOrStr<'a> {
Bytes(&'a [u8]),
Str(&'a str),
}
Expand description
Bytes or Str. Being an str
means the data is UTF-8 valid.
Variants§
Implementations§
Trait Implementations§
source§impl<'a> Clone for BytesOrStr<'a>
impl<'a> Clone for BytesOrStr<'a>
source§fn clone(&self) -> BytesOrStr<'a>
fn clone(&self) -> BytesOrStr<'a>
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<'a> Debug for BytesOrStr<'a>
impl<'a> Debug for BytesOrStr<'a>
source§impl<'a> Hash for BytesOrStr<'a>
impl<'a> Hash for BytesOrStr<'a>
source§impl<'a> PartialEq for BytesOrStr<'a>
impl<'a> PartialEq for BytesOrStr<'a>
source§fn eq(&self, other: &BytesOrStr<'a>) -> bool
fn eq(&self, other: &BytesOrStr<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Copy for BytesOrStr<'a>
impl<'a> Eq for BytesOrStr<'a>
impl<'a> StructuralPartialEq for BytesOrStr<'a>
Auto Trait Implementations§
impl<'a> Freeze for BytesOrStr<'a>
impl<'a> RefUnwindSafe for BytesOrStr<'a>
impl<'a> Send for BytesOrStr<'a>
impl<'a> Sync for BytesOrStr<'a>
impl<'a> Unpin for BytesOrStr<'a>
impl<'a> UnwindSafe for BytesOrStr<'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