Struct rkyv::core_impl::range::ArchivedRangeInclusive [−][src]
An archived RangeInclusive
.
Fields
start: T
The lower bound of the range (inclusive).
end: T
The upper bound of the range (inclusive).
Implementations
impl<T: PartialOrd<T>> ArchivedRangeInclusive<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 ArchivedRangeInclusive<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 ArchivedRangeInclusive<T>
[src]
fn clone(&self) -> ArchivedRangeInclusive<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug> Debug for ArchivedRangeInclusive<T>
[src]
impl<T: Default> Default for ArchivedRangeInclusive<T>
[src]
fn default() -> ArchivedRangeInclusive<T>
[src]
impl<T: Eq> Eq for ArchivedRangeInclusive<T>
[src]
impl<T: Hash> Hash for ArchivedRangeInclusive<T>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: PartialEq> PartialEq<ArchivedRangeInclusive<T>> for ArchivedRangeInclusive<T>
[src]
fn eq(&self, other: &ArchivedRangeInclusive<T>) -> bool
[src]
fn ne(&self, other: &ArchivedRangeInclusive<T>) -> bool
[src]
impl<T, U: PartialEq<T>> PartialEq<RangeInclusive<T>> for ArchivedRangeInclusive<U>
[src]
fn eq(&self, other: &RangeInclusive<T>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T> RangeBounds<T> for ArchivedRangeInclusive<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 ArchivedRangeInclusive<T>
[src]
impl<T> StructuralPartialEq for ArchivedRangeInclusive<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for ArchivedRangeInclusive<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for ArchivedRangeInclusive<T> where
T: Send,
T: Send,
impl<T> Sync for ArchivedRangeInclusive<T> where
T: Sync,
T: Sync,
impl<T> Unpin for ArchivedRangeInclusive<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for ArchivedRangeInclusive<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointee for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,