Struct rkyv::validation::Interval[][src]

pub struct Interval {
    pub start: *const u8,
    pub end: *const u8,
}

A range of bytes in an archive.

Fields

start: *const u8

The start of the byte range

end: *const u8

The end of the byte range

Implementations

impl Interval[src]

pub fn overlaps(&self, other: &Self) -> bool[src]

Returns whether the interval overlaps with another.

Trait Implementations

impl Clone for Interval[src]

impl Copy for Interval[src]

impl Debug for Interval[src]

impl Eq for Interval[src]

impl Ord for Interval[src]

impl PartialEq<Interval> for Interval[src]

impl PartialOrd<Interval> for Interval[src]

impl StructuralEq for Interval[src]

impl StructuralPartialEq for Interval[src]

Auto Trait Implementations

impl RefUnwindSafe for Interval

impl !Send for Interval

impl !Sync for Interval

impl Unpin for Interval

impl UnwindSafe for Interval

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.