Struct rkyv::core_impl::range::ArchivedRangeInclusive[][src]

pub struct ArchivedRangeInclusive<T> {
    pub start: T,
    pub end: T,
}

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]

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.

impl<T: Clone> Clone for ArchivedRangeInclusive<T>[src]

impl<T: Debug> Debug for ArchivedRangeInclusive<T>[src]

impl<T: Default> Default for ArchivedRangeInclusive<T>[src]

impl<T: Eq> Eq for ArchivedRangeInclusive<T>[src]

impl<T: Hash> Hash for ArchivedRangeInclusive<T>[src]

impl<T: PartialEq> PartialEq<ArchivedRangeInclusive<T>> for ArchivedRangeInclusive<T>[src]

impl<T, U: PartialEq<T>> PartialEq<RangeInclusive<T>> for ArchivedRangeInclusive<U>[src]

impl<T> RangeBounds<T> for ArchivedRangeInclusive<T>[src]

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

impl<T> Send for ArchivedRangeInclusive<T> where
    T: Send

impl<T> Sync for ArchivedRangeInclusive<T> where
    T: Sync

impl<T> Unpin for ArchivedRangeInclusive<T> where
    T: Unpin

impl<T> UnwindSafe for ArchivedRangeInclusive<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ArchivePointee for T[src]

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointee for T[src]

type Metadata = ()

The type for metadata in pointers and references to Self.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.