Struct rkyv::ops::ArchivedRangeFrom [−][src]
pub struct ArchivedRangeFrom<T> { pub start: T, }
Expand description
An archived RangeFrom
.
Fields
start: T
The lower bound of the range (inclusive).
Implementations
pub fn contains<U: ?Sized>(&self, item: &U) -> bool where
T: PartialOrd<U>,
U: ?Sized + PartialOrd<T>,
pub fn contains<U: ?Sized>(&self, item: &U) -> bool where
T: PartialOrd<U>,
U: ?Sized + PartialOrd<T>,
Returns true
if item
is contained in the range.
Trait Implementations
type Error = StructCheckError
type Error = StructCheckError
The error that may result from checking the type.
unsafe fn check_bytes<'__bytecheck>(
value: *const Self,
context: &mut __C
) -> Result<&'__bytecheck Self, Self::Error>
unsafe fn check_bytes<'__bytecheck>(
value: *const Self,
context: &mut __C
) -> Result<&'__bytecheck Self, Self::Error>
Checks whether the given pointer points to a valid value within the given context. Read more
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for ArchivedRangeFrom<T> where
T: RefUnwindSafe,
impl<T> Send for ArchivedRangeFrom<T> where
T: Send,
impl<T> Sync for ArchivedRangeFrom<T> where
T: Sync,
impl<T> Unpin for ArchivedRangeFrom<T> where
T: Unpin,
impl<T> UnwindSafe for ArchivedRangeFrom<T> where
T: UnwindSafe,
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more