Struct rkyv::ops::ArchivedRangeInclusive [−][src]
pub struct ArchivedRangeInclusive<T> {
pub start: T,
pub end: T,
}
Expand description
An archived RangeInclusive
.
Fields
start: T
The lower bound of the range (inclusive).
end: T
The upper bound of the range (inclusive).
Implementations
Trait Implementations
impl<__C: ?Sized, T> CheckBytes<__C> for ArchivedRangeInclusive<T> where
T: CheckBytes<__C>,
T: CheckBytes<__C>,
impl<__C: ?Sized, T> CheckBytes<__C> for ArchivedRangeInclusive<T> where
T: CheckBytes<__C>,
T: CheckBytes<__C>,
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 ArchivedRangeInclusive<T> where
T: RefUnwindSafe,
impl<T> Send for ArchivedRangeInclusive<T> where
T: Send,
impl<T> Sync for ArchivedRangeInclusive<T> where
T: Sync,
impl<T> Unpin for ArchivedRangeInclusive<T> where
T: Unpin,
impl<T> UnwindSafe for ArchivedRangeInclusive<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