Struct rkyv::ops::ArchivedRangeTo
source · #[repr(C)]pub struct ArchivedRangeTo<T> {
pub end: T,
}
Expand description
An archived RangeTo
.
Fields§
§end: T
The upper bound of the range (exclusive).
Implementations§
source§impl<T: PartialOrd<T>> ArchivedRangeTo<T>
impl<T: PartialOrd<T>> ArchivedRangeTo<T>
Trait Implementations§
source§impl<__C: ?Sized, T> CheckBytes<__C> for ArchivedRangeTo<T>where
T: CheckBytes<__C>,
impl<__C: ?Sized, T> CheckBytes<__C> for ArchivedRangeTo<T>where
T: CheckBytes<__C>,
§type Error = StructCheckError
type Error = StructCheckError
The error that may result from checking the type.
source§unsafe 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
source§impl<T: Clone> Clone for ArchivedRangeTo<T>
impl<T: Clone> Clone for ArchivedRangeTo<T>
source§fn clone(&self) -> ArchivedRangeTo<T>
fn clone(&self) -> ArchivedRangeTo<T>
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<T: Debug> Debug for ArchivedRangeTo<T>
impl<T: Debug> Debug for ArchivedRangeTo<T>
source§impl<T: Default> Default for ArchivedRangeTo<T>
impl<T: Default> Default for ArchivedRangeTo<T>
source§fn default() -> ArchivedRangeTo<T>
fn default() -> ArchivedRangeTo<T>
Returns the “default value” for a type. Read more
source§impl<T: Hash> Hash for ArchivedRangeTo<T>
impl<T: Hash> Hash for ArchivedRangeTo<T>
source§impl<T, U: PartialEq<T>> PartialEq<RangeTo<T>> for ArchivedRangeTo<U>
impl<T, U: PartialEq<T>> PartialEq<RangeTo<T>> for ArchivedRangeTo<U>
source§impl<T: PartialEq> PartialEq for ArchivedRangeTo<T>
impl<T: PartialEq> PartialEq for ArchivedRangeTo<T>
source§fn eq(&self, other: &ArchivedRangeTo<T>) -> bool
fn eq(&self, other: &ArchivedRangeTo<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> RangeBounds<T> for ArchivedRangeTo<T>
impl<T> RangeBounds<T> for ArchivedRangeTo<T>
impl<T: Eq> Eq for ArchivedRangeTo<T>
impl<T> StructuralPartialEq for ArchivedRangeTo<T>
Auto Trait Implementations§
impl<T> Freeze for ArchivedRangeTo<T>where
T: Freeze,
impl<T> RefUnwindSafe for ArchivedRangeTo<T>where
T: RefUnwindSafe,
impl<T> Send for ArchivedRangeTo<T>where
T: Send,
impl<T> Sync for ArchivedRangeTo<T>where
T: Sync,
impl<T> Unpin for ArchivedRangeTo<T>where
T: Unpin,
impl<T> UnwindSafe for ArchivedRangeTo<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn 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.
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> CallHasher for T
impl<T> CallHasher for T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.