pub struct RawDataSlice<'a, R, BO> { /* private fields */ }
Expand description
Raw data slice.
This type is a wrapper around a byte array to specify the stored data format.
See the module-level documentation for more information.
Implementations§
Trait Implementations§
Source§impl<'a, R: Clone, BO: Clone> Clone for RawDataSlice<'a, R, BO>
impl<'a, R: Clone, BO: Clone> Clone for RawDataSlice<'a, R, BO>
Source§fn clone(&self) -> RawDataSlice<'a, R, BO>
fn clone(&self) -> RawDataSlice<'a, R, BO>
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, R, BO> Format for RawDataSlice<'a, R, BO>
impl<'a, R, BO> Format for RawDataSlice<'a, R, BO>
Source§impl<'a, BO> IntoIterator for RawDataSlice<'a, RawU1, BO>
impl<'a, BO> IntoIterator for RawDataSlice<'a, RawU1, BO>
Source§impl<'a> IntoIterator for RawDataSlice<'a, RawU16, BigEndian>
impl<'a> IntoIterator for RawDataSlice<'a, RawU16, BigEndian>
Source§impl<'a> IntoIterator for RawDataSlice<'a, RawU16, LittleEndian>
impl<'a> IntoIterator for RawDataSlice<'a, RawU16, LittleEndian>
Source§impl<'a, BO> IntoIterator for RawDataSlice<'a, RawU2, BO>
impl<'a, BO> IntoIterator for RawDataSlice<'a, RawU2, BO>
Source§impl<'a> IntoIterator for RawDataSlice<'a, RawU24, BigEndian>
impl<'a> IntoIterator for RawDataSlice<'a, RawU24, BigEndian>
Source§impl<'a> IntoIterator for RawDataSlice<'a, RawU24, LittleEndian>
impl<'a> IntoIterator for RawDataSlice<'a, RawU24, LittleEndian>
Source§impl<'a> IntoIterator for RawDataSlice<'a, RawU32, BigEndian>
impl<'a> IntoIterator for RawDataSlice<'a, RawU32, BigEndian>
Source§impl<'a> IntoIterator for RawDataSlice<'a, RawU32, LittleEndian>
impl<'a> IntoIterator for RawDataSlice<'a, RawU32, LittleEndian>
Source§impl<'a, BO> IntoIterator for RawDataSlice<'a, RawU4, BO>
impl<'a, BO> IntoIterator for RawDataSlice<'a, RawU4, BO>
Source§impl<'a, BO> IntoIterator for RawDataSlice<'a, RawU8, BO>
impl<'a, BO> IntoIterator for RawDataSlice<'a, RawU8, BO>
Source§impl<'a, R: Ord, BO: Ord> Ord for RawDataSlice<'a, R, BO>
impl<'a, R: Ord, BO: Ord> Ord for RawDataSlice<'a, R, BO>
Source§fn cmp(&self, other: &RawDataSlice<'a, R, BO>) -> Ordering
fn cmp(&self, other: &RawDataSlice<'a, R, BO>) -> 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
Source§impl<'a, R: PartialOrd, BO: PartialOrd> PartialOrd for RawDataSlice<'a, R, BO>
impl<'a, R: PartialOrd, BO: PartialOrd> PartialOrd for RawDataSlice<'a, R, BO>
impl<'a, R: Copy, BO: Copy> Copy for RawDataSlice<'a, R, BO>
impl<'a, R: Eq, BO: Eq> Eq for RawDataSlice<'a, R, BO>
impl<'a, R, BO> StructuralPartialEq for RawDataSlice<'a, R, BO>
Auto Trait Implementations§
impl<'a, R, BO> Freeze for RawDataSlice<'a, R, BO>
impl<'a, R, BO> RefUnwindSafe for RawDataSlice<'a, R, BO>where
R: RefUnwindSafe,
BO: RefUnwindSafe,
impl<'a, R, BO> Send for RawDataSlice<'a, R, BO>
impl<'a, R, BO> Sync for RawDataSlice<'a, R, BO>
impl<'a, R, BO> Unpin for RawDataSlice<'a, R, BO>
impl<'a, R, BO> UnwindSafe for RawDataSlice<'a, R, BO>where
R: UnwindSafe,
BO: UnwindSafe,
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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.