Struct packable::prefix::BoxedSlicePrefix
source · [−]#[repr(transparent)]pub struct BoxedSlicePrefix<T, B: Bounded> { /* private fields */ }
Expand description
Wrapper type for Box<[T]>
with a length prefix.
The boxed slice’s prefix bounds are provided by B
, where B
is a Bounded
type.
The prefix type is the Bounds
type associated with B
.
Trait Implementations
sourceimpl<T: Clone, B: Clone + Bounded> Clone for BoxedSlicePrefix<T, B>
impl<T: Clone, B: Clone + Bounded> Clone for BoxedSlicePrefix<T, B>
sourcefn clone(&self) -> BoxedSlicePrefix<T, B>
fn clone(&self) -> BoxedSlicePrefix<T, B>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug, B: Bounded> Debug for BoxedSlicePrefix<T, B>
impl<T: Debug, B: Bounded> Debug for BoxedSlicePrefix<T, B>
sourceimpl<T, B: Bounded> Default for BoxedSlicePrefix<T, B>
impl<T, B: Bounded> Default for BoxedSlicePrefix<T, B>
sourceimpl<T, B: Bounded> Deref for BoxedSlicePrefix<T, B>
impl<T, B: Bounded> Deref for BoxedSlicePrefix<T, B>
sourceimpl<T, B: Bounded> DerefMut for BoxedSlicePrefix<T, B>
impl<T, B: Bounded> DerefMut for BoxedSlicePrefix<T, B>
This is fine as slices cannot be resized.
sourceimpl<T, B: Bounded> From<BoxedSlicePrefix<T, B>> for Box<[T]>
impl<T, B: Bounded> From<BoxedSlicePrefix<T, B>> for Box<[T]>
sourcefn from(prefix: BoxedSlicePrefix<T, B>) -> Self
fn from(prefix: BoxedSlicePrefix<T, B>) -> Self
Converts to this type from the input type.
sourceimpl<T: Ord, B: Ord + Bounded> Ord for BoxedSlicePrefix<T, B>
impl<T: Ord, B: Ord + Bounded> Ord for BoxedSlicePrefix<T, B>
sourceimpl<T, B> Packable for BoxedSlicePrefix<T, B> where
T: Packable,
B: Bounded + Packable,
<B::Bounds as TryInto<B>>::Error: Debug,
<B as TryFrom<usize>>::Error: Debug,
Range<B::Bounds>: Iterator<Item = B::Bounds>,
impl<T, B> Packable for BoxedSlicePrefix<T, B> where
T: Packable,
B: Bounded + Packable,
<B::Bounds as TryInto<B>>::Error: Debug,
<B as TryFrom<usize>>::Error: Debug,
Range<B::Bounds>: Iterator<Item = B::Bounds>,
sourceimpl<T: PartialEq, B: PartialEq + Bounded> PartialEq<BoxedSlicePrefix<T, B>> for BoxedSlicePrefix<T, B>
impl<T: PartialEq, B: PartialEq + Bounded> PartialEq<BoxedSlicePrefix<T, B>> for BoxedSlicePrefix<T, B>
sourcefn eq(&self, other: &BoxedSlicePrefix<T, B>) -> bool
fn eq(&self, other: &BoxedSlicePrefix<T, B>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BoxedSlicePrefix<T, B>) -> bool
fn ne(&self, other: &BoxedSlicePrefix<T, B>) -> bool
This method tests for !=
.
sourceimpl<T: PartialOrd, B: PartialOrd + Bounded> PartialOrd<BoxedSlicePrefix<T, B>> for BoxedSlicePrefix<T, B>
impl<T: PartialOrd, B: PartialOrd + Bounded> PartialOrd<BoxedSlicePrefix<T, B>> for BoxedSlicePrefix<T, B>
sourcefn partial_cmp(&self, other: &BoxedSlicePrefix<T, B>) -> Option<Ordering>
fn partial_cmp(&self, other: &BoxedSlicePrefix<T, B>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: Eq, B: Eq + Bounded> Eq for BoxedSlicePrefix<T, B>
impl<T, B: Bounded> StructuralEq for BoxedSlicePrefix<T, B>
impl<T, B: Bounded> StructuralPartialEq for BoxedSlicePrefix<T, B>
Auto Trait Implementations
impl<T, B> RefUnwindSafe for BoxedSlicePrefix<T, B> where
B: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, B> Send for BoxedSlicePrefix<T, B> where
B: Send,
T: Send,
impl<T, B> Sync for BoxedSlicePrefix<T, B> where
B: Sync,
T: Sync,
impl<T, B> Unpin for BoxedSlicePrefix<T, B> where
B: Unpin,
impl<T, B> UnwindSafe for BoxedSlicePrefix<T, B> where
B: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more