Struct rkyv::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<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
sourcefn ne(&self, other: &ArchivedRange<T>) -> bool
fn ne(&self, other: &ArchivedRange<T>) -> bool
This method tests for !=
.
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(_: &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