pub type OptionBodyRef<'a> = OptionBody<&'a [u8]>;
Aliased Type§
struct OptionBodyRef<'a> { /* private fields */ }
Implementations
Source§impl<B: AsRef<[u8]>> OptionBody<B>
impl<B: AsRef<[u8]>> OptionBody<B>
pub fn new(bytes: B) -> Result<Self, BodyLengthError>
pub fn to_owned(&self) -> OptionBody
Trait Implementations
Source§impl<B: Clone> Clone for OptionBody<B>
impl<B: Clone> Clone for OptionBody<B>
Source§fn clone(&self) -> OptionBody<B>
fn clone(&self) -> OptionBody<B>
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<B> Debug for OptionBody<B>
impl<B> Debug for OptionBody<B>
Source§impl<B: Hash> Hash for OptionBody<B>
impl<B: Hash> Hash for OptionBody<B>
Source§impl<B: Ord> Ord for OptionBody<B>
impl<B: Ord> Ord for OptionBody<B>
Source§fn cmp(&self, other: &OptionBody<B>) -> Ordering
fn cmp(&self, other: &OptionBody<B>) -> Ordering
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