pub struct Area<const MCL: usize, const MCC: usize, const MPL: usize, S: SubspaceId> { /* private fields */ }Expand description
A grouping of entries. Definition.
Implementations§
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S: SubspaceId> Area<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S: SubspaceId> Area<MCL, MCC, MPL, S>
Sourcepub fn new(
subspace: AreaSubspace<S>,
path: Path<MCL, MCC, MPL>,
times: Range<Timestamp>,
) -> Self
pub fn new( subspace: AreaSubspace<S>, path: Path<MCL, MCC, MPL>, times: Range<Timestamp>, ) -> Self
Create a new Area.
Sourcepub fn subspace(&self) -> &AreaSubspace<S>
pub fn subspace(&self) -> &AreaSubspace<S>
Return a reference to the AreaSubspace.
To be included in this Area, an Entry’s subspace_id must be equal to the subspace_id, unless it is any.
Sourcepub fn new_full() -> Self
pub fn new_full() -> Self
Return an Area which includes all entries.
Definition.
Sourcepub fn new_subspace(sub: S) -> Self
pub fn new_subspace(sub: S) -> Self
Return an Area which includes all entries within a subspace.
Definition.
Sourcepub fn includes_entry<N: NamespaceId, PD: PayloadDigest>(
&self,
entry: &Entry<MCL, MCC, MPL, N, S, PD>,
) -> bool
pub fn includes_entry<N: NamespaceId, PD: PayloadDigest>( &self, entry: &Entry<MCL, MCC, MPL, N, S, PD>, ) -> bool
Sourcepub fn includes_area(&self, area: &Self) -> bool
pub fn includes_area(&self, area: &Self) -> bool
Sourcepub fn intersection(&self, other: &Area<MCL, MCC, MPL, S>) -> Option<Self>
pub fn intersection(&self, other: &Area<MCL, MCC, MPL, S>) -> Option<Self>
Return the intersection of this Area with another.
Definition.
Trait Implementations§
Source§impl<'a, const MCL: usize, const MCC: usize, const MPL: usize, S> Arbitrary<'a> for Area<MCL, MCC, MPL, S>where
S: SubspaceId + Arbitrary<'a>,
impl<'a, const MCL: usize, const MCC: usize, const MPL: usize, S> Arbitrary<'a> for Area<MCL, MCC, MPL, S>where
S: SubspaceId + Arbitrary<'a>,
Source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl<const MCL: usize, const MCC: usize, const MPL: usize, S: Clone + SubspaceId> Clone for Area<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S: Clone + SubspaceId> Clone for Area<MCL, MCC, MPL, S>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S: Debug + SubspaceId> Debug for Area<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S: Debug + SubspaceId> Debug for Area<MCL, MCC, MPL, S>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S: SubspaceId> From<Area<MCL, MCC, MPL, S>> for Range3d<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S: SubspaceId> From<Area<MCL, MCC, MPL, S>> for Range3d<MCL, MCC, MPL, S>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S: Ord + SubspaceId> Ord for Area<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S: Ord + SubspaceId> Ord for Area<MCL, MCC, MPL, S>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S: PartialEq + SubspaceId> PartialEq for Area<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S: PartialEq + SubspaceId> PartialEq for Area<MCL, MCC, MPL, S>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S: PartialOrd + SubspaceId> PartialOrd for Area<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S: PartialOrd + SubspaceId> PartialOrd for Area<MCL, MCC, MPL, S>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RelativeDecodable<Area<MCL, MCC, MPL, S>> for Area<MCL, MCC, MPL, S>where
S: SubspaceId + Decodable,
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RelativeDecodable<Area<MCL, MCC, MPL, S>> for Area<MCL, MCC, MPL, S>where
S: SubspaceId + Decodable,
Source§async fn relative_decode<Producer>(
out: &Area<MCL, MCC, MPL, S>,
producer: &mut Producer,
) -> Result<Self, DecodeError<Producer::Error>>
async fn relative_decode<Producer>( out: &Area<MCL, MCC, MPL, S>, producer: &mut Producer, ) -> Result<Self, DecodeError<Producer::Error>>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RelativeDecodable<Area<MCL, MCC, MPL, S>> for Area<MCL, MCC, MPL, S>where
S: SubspaceId + Decodable,
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RelativeDecodable<Area<MCL, MCC, MPL, S>> for Area<MCL, MCC, MPL, S>where
S: SubspaceId + Decodable,
Source§fn relative_decode<Producer>(
out: &Area<MCL, MCC, MPL, S>,
producer: &mut Producer,
) -> Result<Self, DecodeError<Producer::Error>>
fn relative_decode<Producer>( out: &Area<MCL, MCC, MPL, S>, producer: &mut Producer, ) -> Result<Self, DecodeError<Producer::Error>>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RelativeEncodable<Area<MCL, MCC, MPL, S>> for Area<MCL, MCC, MPL, S>where
S: SubspaceId + Encodable,
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RelativeEncodable<Area<MCL, MCC, MPL, S>> for Area<MCL, MCC, MPL, S>where
S: SubspaceId + Encodable,
Source§async fn relative_encode<Consumer>(
&self,
out: &Area<MCL, MCC, MPL, S>,
consumer: &mut Consumer,
) -> Result<(), Consumer::Error>where
Consumer: BulkConsumer<Item = u8>,
async fn relative_encode<Consumer>(
&self,
out: &Area<MCL, MCC, MPL, S>,
consumer: &mut Consumer,
) -> Result<(), Consumer::Error>where
Consumer: BulkConsumer<Item = u8>,
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RelativeEncodable<Area<MCL, MCC, MPL, S>> for Area<MCL, MCC, MPL, S>where
S: SubspaceId + Encodable,
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RelativeEncodable<Area<MCL, MCC, MPL, S>> for Area<MCL, MCC, MPL, S>where
S: SubspaceId + Encodable,
Source§fn relative_encode<Consumer>(
&self,
out: &Area<MCL, MCC, MPL, S>,
consumer: &mut Consumer,
) -> Result<(), Consumer::Error>where
Consumer: BulkConsumer<Item = u8>,
fn relative_encode<Consumer>(
&self,
out: &Area<MCL, MCC, MPL, S>,
consumer: &mut Consumer,
) -> Result<(), Consumer::Error>where
Consumer: BulkConsumer<Item = u8>,
impl<const MCL: usize, const MCC: usize, const MPL: usize, S: Eq + SubspaceId> Eq for Area<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S: SubspaceId> StructuralPartialEq for Area<MCL, MCC, MPL, S>
Auto Trait Implementations§
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> !Freeze for Area<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RefUnwindSafe for Area<MCL, MCC, MPL, S>where
S: RefUnwindSafe,
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> Send for Area<MCL, MCC, MPL, S>where
S: Send,
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> Sync for Area<MCL, MCC, MPL, S>where
S: Sync,
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> Unpin for Area<MCL, MCC, MPL, S>where
S: Unpin,
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> UnwindSafe for Area<MCL, MCC, MPL, S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more