Struct rkyv_test::ops::ArchivedRange
source · [−]pub struct ArchivedRange<T> {
pub start: T,
pub end: T,
}
Expand description
An archived Range
.
Fields
start: T
The lower bound of the range (inclusive).
end: T
The upper bound of the range (inclusive).
Implementations
sourceimpl<T: PartialOrd<T>> ArchivedRange<T>
impl<T: PartialOrd<T>> ArchivedRange<T>
sourcepub fn contains<U>(&self, item: &U) -> bool where
T: PartialOrd<U>,
U: PartialOrd<T> + ?Sized,
pub fn contains<U>(&self, item: &U) -> bool where
T: PartialOrd<U>,
U: PartialOrd<T> + ?Sized,
Returns true
if item
is contained in the range.
Trait Implementations
sourceimpl<__C: ?Sized, T> CheckBytes<__C> for ArchivedRange<T> where
T: CheckBytes<__C>,
T: CheckBytes<__C>,
impl<__C: ?Sized, T> CheckBytes<__C> for ArchivedRange<T> where
T: CheckBytes<__C>,
T: CheckBytes<__C>,
type Error = StructCheckError
type Error = StructCheckError
The error that may result from checking the type.
sourceunsafe fn check_bytes<'__bytecheck>(
value: *const Self,
context: &mut __C
) -> Result<&'__bytecheck Self, StructCheckError>
unsafe fn check_bytes<'__bytecheck>(
value: *const Self,
context: &mut __C
) -> Result<&'__bytecheck Self, StructCheckError>
Checks whether the given pointer points to a valid value within the given context. Read more
sourceimpl<T: Clone> Clone for ArchivedRange<T>
impl<T: Clone> Clone for ArchivedRange<T>
sourcefn clone(&self) -> ArchivedRange<T>
fn clone(&self) -> ArchivedRange<T>
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> Debug for ArchivedRange<T>
impl<T: Debug> Debug for ArchivedRange<T>
sourceimpl<T: Default> Default for ArchivedRange<T>
impl<T: Default> Default for ArchivedRange<T>
sourcefn default() -> ArchivedRange<T>
fn default() -> ArchivedRange<T>
Returns the “default value” for a type. Read more
sourceimpl<T: Hash> Hash for ArchivedRange<T>
impl<T: Hash> Hash for ArchivedRange<T>
sourceimpl<T: PartialEq> PartialEq<ArchivedRange<T>> for ArchivedRange<T>
impl<T: PartialEq> PartialEq<ArchivedRange<T>> for ArchivedRange<T>
sourcefn eq(&self, other: &ArchivedRange<T>) -> bool
fn eq(&self, other: &ArchivedRange<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl<T, U: PartialEq<T>> PartialEq<Range<T>> for ArchivedRange<U>
impl<T, U: PartialEq<T>> PartialEq<Range<T>> for ArchivedRange<U>
sourceimpl<T> RangeBounds<T> for ArchivedRange<T>
impl<T> RangeBounds<T> for ArchivedRange<T>
impl<T: Eq> Eq for ArchivedRange<T>
impl<T> StructuralEq for ArchivedRange<T>
impl<T> StructuralPartialEq for ArchivedRange<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for ArchivedRange<T> where
T: RefUnwindSafe,
impl<T> Send for ArchivedRange<T> where
T: Send,
impl<T> Sync for ArchivedRange<T> where
T: Sync,
impl<T> Unpin for ArchivedRange<T> where
T: Unpin,
impl<T> UnwindSafe for ArchivedRange<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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