Struct rkyv::core_impl::range::ArchivedRange [−][src]
pub struct ArchivedRange<T> { pub start: T, pub end: T, }
An archived Range
.
Fields
start: T
The lower bound of the range (inclusive).
end: T
The upper bound of the range (inclusive).
Implementations
impl<T: PartialOrd<T>> ArchivedRange<T>
[src]
impl<T: PartialOrd<T>> ArchivedRange<T>
[src]pub fn contains<U: ?Sized>(&self, item: &U) -> bool where
T: PartialOrd<U>,
U: PartialOrd<T>,
[src]
T: PartialOrd<U>,
U: PartialOrd<T>,
Returns true
if item
is contained in the range.
pub fn is_empty(&self) -> bool
[src]
Returns true
if the range contains no items.
Trait Implementations
impl<C: ?Sized, T: CheckBytes<C>> CheckBytes<C> for ArchivedRange<T>
[src]
impl<C: ?Sized, T: CheckBytes<C>> CheckBytes<C> for ArchivedRange<T>
[src]type Error = StructCheckError
The error that may result from checking the type.
unsafe fn check_bytes<'a>(
value: *const Self,
context: &mut C
) -> Result<&'a Self, Self::Error>
[src]
value: *const Self,
context: &mut C
) -> Result<&'a Self, Self::Error>
impl<T: Clone> Clone for ArchivedRange<T>
[src]
impl<T: Clone> Clone for ArchivedRange<T>
[src]fn clone(&self) -> ArchivedRange<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Default> Default for ArchivedRange<T>
[src]
impl<T: Default> Default for ArchivedRange<T>
[src]fn default() -> ArchivedRange<T>
[src]
impl<T: Eq> Eq for ArchivedRange<T>
[src]
impl<T: Eq> Eq for ArchivedRange<T>
[src]impl<T: Hash> Hash for ArchivedRange<T>
[src]
impl<T: Hash> Hash for ArchivedRange<T>
[src]impl<T: PartialEq> PartialEq<ArchivedRange<T>> for ArchivedRange<T>
[src]
impl<T: PartialEq> PartialEq<ArchivedRange<T>> for ArchivedRange<T>
[src]fn eq(&self, other: &ArchivedRange<T>) -> bool
[src]
fn ne(&self, other: &ArchivedRange<T>) -> bool
[src]
impl<T, U: PartialEq<T>> PartialEq<Range<T>> for ArchivedRange<U>
[src]
impl<T, U: PartialEq<T>> PartialEq<Range<T>> for ArchivedRange<U>
[src]impl<T> RangeBounds<T> for ArchivedRange<T>
[src]
impl<T> RangeBounds<T> for ArchivedRange<T>
[src]fn start_bound(&self) -> Bound<&T>
[src]
fn end_bound(&self) -> Bound<&T>
[src]
pub fn contains<U>(&self, item: &U) -> bool where
T: PartialOrd<U>,
U: PartialOrd<T> + ?Sized,
1.35.0[src]
T: PartialOrd<U>,
U: PartialOrd<T> + ?Sized,
impl<T> StructuralEq for ArchivedRange<T>
[src]
impl<T> StructuralEq for ArchivedRange<T>
[src]impl<T> StructuralPartialEq for ArchivedRange<T>
[src]
impl<T> StructuralPartialEq for ArchivedRange<T>
[src]Auto Trait Implementations
impl<T> RefUnwindSafe for ArchivedRange<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for ArchivedRange<T> where
T: RefUnwindSafe,
impl<T> Send for ArchivedRange<T> where
T: Send,
impl<T> Send for ArchivedRange<T> where
T: Send,
impl<T> Sync for ArchivedRange<T> where
T: Sync,
impl<T> Sync for ArchivedRange<T> where
T: Sync,
impl<T> Unpin for ArchivedRange<T> where
T: Unpin,
impl<T> Unpin for ArchivedRange<T> where
T: Unpin,
impl<T> UnwindSafe for ArchivedRange<T> where
T: UnwindSafe,
impl<T> UnwindSafe for ArchivedRange<T> where
T: UnwindSafe,
Blanket Implementations
impl<T> ArchivePointee for T
[src]
impl<T> ArchivePointee for T
[src]type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
[src]
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata