Struct rkyv::ops::ArchivedRangeTo
source · [−]pub struct ArchivedRangeTo<T> {
pub end: T,
}
Expand description
An archived RangeTo
.
Fields
end: T
The upper bound of the range (exclusive).
Implementations
sourceimpl<T: PartialOrd<T>> ArchivedRangeTo<T>
impl<T: PartialOrd<T>> ArchivedRangeTo<T>
sourcepub fn contains<U>(&self, item: &U) -> bool where
T: PartialOrd<U>,
U: ?Sized + PartialOrd<T>,
pub fn contains<U>(&self, item: &U) -> bool where
T: PartialOrd<U>,
U: ?Sized + PartialOrd<T>,
Returns true
if item
is contained in the range.
Trait Implementations
sourceimpl<T: Clone> Clone for ArchivedRangeTo<T>
impl<T: Clone> Clone for ArchivedRangeTo<T>
sourcefn clone(&self) -> ArchivedRangeTo<T>
fn clone(&self) -> ArchivedRangeTo<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 ArchivedRangeTo<T>
impl<T: Debug> Debug for ArchivedRangeTo<T>
sourceimpl<T: Default> Default for ArchivedRangeTo<T>
impl<T: Default> Default for ArchivedRangeTo<T>
sourcefn default() -> ArchivedRangeTo<T>
fn default() -> ArchivedRangeTo<T>
Returns the “default value” for a type. Read more
sourceimpl<T: Hash> Hash for ArchivedRangeTo<T>
impl<T: Hash> Hash for ArchivedRangeTo<T>
sourceimpl<T: PartialEq> PartialEq<ArchivedRangeTo<T>> for ArchivedRangeTo<T>
impl<T: PartialEq> PartialEq<ArchivedRangeTo<T>> for ArchivedRangeTo<T>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ArchivedRangeTo<T>) -> bool
fn ne(&self, other: &ArchivedRangeTo<T>) -> bool
This method tests for !=
.
sourceimpl<T, U: PartialEq<T>> PartialEq<RangeTo<T>> for ArchivedRangeTo<U>
impl<T, U: PartialEq<T>> PartialEq<RangeTo<T>> for ArchivedRangeTo<U>
sourceimpl<T> RangeBounds<T> for ArchivedRangeTo<T>
impl<T> RangeBounds<T> for ArchivedRangeTo<T>
impl<T: Eq> Eq for ArchivedRangeTo<T>
impl<T> StructuralEq for ArchivedRangeTo<T>
impl<T> StructuralPartialEq for ArchivedRangeTo<T>
Auto Trait Implementations
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
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(_: &Self::ArchivedMetadata) -> <Self as Pointee>::Metadata
fn pointer_metadata(_: &Self::ArchivedMetadata) -> <Self 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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more