pub struct Range3d<const MCL: usize, const MCC: usize, const MPL: usize, S> { /* private fields */ }Expand description
A three-dimensional range that includes every Entry included in all three of its ranges.
Implementations§
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S> Range3d<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> Range3d<MCL, MCC, MPL, S>
Sourcepub fn new(
subspaces: Range<S>,
paths: Range<Path<MCL, MCC, MPL>>,
times: Range<Timestamp>,
) -> Self
pub fn new( subspaces: Range<S>, paths: Range<Path<MCL, MCC, MPL>>, times: Range<Timestamp>, ) -> Self
Creates a new Range3d.
Sourcepub fn subspaces(&self) -> &Range<S>
pub fn subspaces(&self) -> &Range<S>
Returns a reference to the range of SubspaceIds.
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S> Range3d<MCL, MCC, MPL, S>where
S: Default,
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> Range3d<MCL, MCC, MPL, S>where
S: Default,
Trait Implementations§
Source§impl<'a, const MCL: usize, const MCC: usize, const MPL: usize, S> Arbitrary<'a> for Range3d<MCL, MCC, MPL, S>where
S: PartialOrd + Arbitrary<'a>,
impl<'a, const MCL: usize, const MCC: usize, const MPL: usize, S> Arbitrary<'a> for Range3d<MCL, MCC, MPL, S>where
S: PartialOrd + 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 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 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 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> Clone for Range3d<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S: Clone> Clone for Range3d<MCL, MCC, MPL, S>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S: Debug> Debug for Range3d<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S: Debug> Debug for Range3d<MCL, MCC, MPL, S>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S: Default> Default for Range3d<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S: Default> Default for Range3d<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: Hash> Hash for Range3d<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S: Hash> Hash for Range3d<MCL, MCC, MPL, S>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S: Ord> Ord for Range3d<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S: Ord> Ord for Range3d<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> PartialEq for Range3d<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S: PartialEq> PartialEq for Range3d<MCL, MCC, MPL, S>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S: PartialOrd> PartialOrd for Range3d<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S: PartialOrd> PartialOrd for Range3d<MCL, MCC, MPL, S>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RelativeDecodable<Range3d<MCL, MCC, MPL, S>, Blame> for Range3d<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RelativeDecodable<Range3d<MCL, MCC, MPL, S>, Blame> for Range3d<MCL, MCC, MPL, S>
Source§async fn relative_decode<P>(
producer: &mut P,
r: &Range3d<MCL, MCC, MPL, S>,
) -> Result<Self, DecodeError<P::Final, P::Error, Blame>>
async fn relative_decode<P>( producer: &mut P, r: &Range3d<MCL, MCC, MPL, S>, ) -> Result<Self, DecodeError<P::Final, P::Error, Blame>>
Source§fn relative_decode_from_slice(
enc: &[u8],
r: &RelativeTo,
) -> impl Future<Output = Result<Self, DecodeError<(), Infallible, ErrorReason>>>
fn relative_decode_from_slice( enc: &[u8], r: &RelativeTo, ) -> impl Future<Output = Result<Self, DecodeError<(), Infallible, ErrorReason>>>
Decodes from a slice instead of a producer.
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RelativeDecodableCanonic<Range3d<MCL, MCC, MPL, S>, Blame, Blame> for Range3d<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RelativeDecodableCanonic<Range3d<MCL, MCC, MPL, S>, Blame, Blame> for Range3d<MCL, MCC, MPL, S>
Source§async fn relative_decode_canonic<P>(
producer: &mut P,
r: &Range3d<MCL, MCC, MPL, S>,
) -> Result<Self, DecodeError<P::Final, P::Error, Blame>>
async fn relative_decode_canonic<P>( producer: &mut P, r: &Range3d<MCL, MCC, MPL, S>, ) -> Result<Self, DecodeError<P::Final, P::Error, Blame>>
Decodes the bytes produced by the given producer into a
Self, and errors if the input encoding is not the canonical one.Source§fn relative_decode_canonic_from_slice(
enc: &[u8],
r: &RelativeTo,
) -> impl Future<Output = Result<Self, DecodeError<(), Infallible, ErrorCanonic>>>
fn relative_decode_canonic_from_slice( enc: &[u8], r: &RelativeTo, ) -> impl Future<Output = Result<Self, DecodeError<(), Infallible, ErrorCanonic>>>
Decodes from a slice instead of a producer, and errors if the input encoding is not the canonical one.
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RelativeDecodableSync<Range3d<MCL, MCC, MPL, S>, Blame> for Range3d<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RelativeDecodableSync<Range3d<MCL, MCC, MPL, S>, Blame> for Range3d<MCL, MCC, MPL, S>
Source§fn sync_relative_decode_from_slice(
enc: &[u8],
r: &RelativeTo,
) -> Result<Self, DecodeError<(), Infallible, ErrorReason>>
fn sync_relative_decode_from_slice( enc: &[u8], r: &RelativeTo, ) -> Result<Self, DecodeError<(), Infallible, ErrorReason>>
Synchronously decodes from a slice instead of a producer.
Source§fn sync_relative_decode_canonic_from_slice<ErrorCanonic>(
enc: &[u8],
r: &RelativeTo,
) -> Result<Self, DecodeError<(), Infallible, ErrorCanonic>>where
ErrorCanonic: From<ErrorReason>,
Self: RelativeDecodableCanonic<RelativeTo, ErrorReason, ErrorCanonic>,
fn sync_relative_decode_canonic_from_slice<ErrorCanonic>(
enc: &[u8],
r: &RelativeTo,
) -> Result<Self, DecodeError<(), Infallible, ErrorCanonic>>where
ErrorCanonic: From<ErrorReason>,
Self: RelativeDecodableCanonic<RelativeTo, ErrorReason, ErrorCanonic>,
Synchronously decodes from a slice instead of a producer, and errors if the input encoding is not the canonical one.
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RelativeEncodable<Range3d<MCL, MCC, MPL, S>> for Range3d<MCL, MCC, MPL, S>where
S: SubspaceId + Encodable,
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RelativeEncodable<Range3d<MCL, MCC, MPL, S>> for Range3d<MCL, MCC, MPL, S>where
S: SubspaceId + Encodable,
Source§async fn relative_encode<C>(
&self,
consumer: &mut C,
r: &Range3d<MCL, MCC, MPL, S>,
) -> Result<(), C::Error>where
C: BulkConsumer<Item = u8>,
async fn relative_encode<C>(
&self,
consumer: &mut C,
r: &Range3d<MCL, MCC, MPL, S>,
) -> Result<(), C::Error>where
C: BulkConsumer<Item = u8>,
Source§fn relative_encode_into_vec(
&self,
r: &RelativeTo,
) -> impl Future<Output = Vec<u8>>
fn relative_encode_into_vec( &self, r: &RelativeTo, ) -> impl Future<Output = Vec<u8>>
Encodes into a Vec instead of a given consumer.
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RelativeEncodableKnownSize<Range3d<MCL, MCC, MPL, S>> for Range3d<MCL, MCC, MPL, S>where
S: SubspaceId + EncodableKnownSize,
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RelativeEncodableKnownSize<Range3d<MCL, MCC, MPL, S>> for Range3d<MCL, MCC, MPL, S>where
S: SubspaceId + EncodableKnownSize,
Source§fn relative_len_of_encoding(&self, r: &Range3d<MCL, MCC, MPL, S>) -> usize
fn relative_len_of_encoding(&self, r: &Range3d<MCL, MCC, MPL, S>) -> usize
Computes the size of the encoding in bytes. Calling
encode must feed exactly that many bytes into the consumer.Source§fn relative_encode_into_boxed_slice(
&self,
r: &RelativeTo,
) -> impl Future<Output = Box<[u8]>>
fn relative_encode_into_boxed_slice( &self, r: &RelativeTo, ) -> impl Future<Output = Box<[u8]>>
Encodes into a boxed slice instead of a given consumer.
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RelativeEncodableSync<Range3d<MCL, MCC, MPL, S>> for Range3d<MCL, MCC, MPL, S>where
S: SubspaceId + EncodableSync,
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RelativeEncodableSync<Range3d<MCL, MCC, MPL, S>> for Range3d<MCL, MCC, MPL, S>where
S: SubspaceId + EncodableSync,
Source§fn sync_relative_encode_into_vec(&self, r: &RelativeTo) -> Vec<u8> ⓘ
fn sync_relative_encode_into_vec(&self, r: &RelativeTo) -> Vec<u8> ⓘ
Synchronously encodes into a Vec instead of a given consumer.
Source§fn sync_relative_encode_into_boxed_slice(&self, r: &RelativeTo) -> Box<[u8]>where
Self: RelativeEncodableKnownSize<RelativeTo>,
fn sync_relative_encode_into_boxed_slice(&self, r: &RelativeTo) -> Box<[u8]>where
Self: RelativeEncodableKnownSize<RelativeTo>,
Synchronously encodes into a boxed slice instead of a given consumer.
impl<const MCL: usize, const MCC: usize, const MPL: usize, S: Eq> Eq for Range3d<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> StructuralPartialEq for Range3d<MCL, MCC, MPL, S>
Auto Trait Implementations§
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> !Freeze for Range3d<MCL, MCC, MPL, S>
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> RefUnwindSafe for Range3d<MCL, MCC, MPL, S>where
S: RefUnwindSafe,
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> Send for Range3d<MCL, MCC, MPL, S>where
S: Send,
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> Sync for Range3d<MCL, MCC, MPL, S>where
S: Sync,
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> Unpin for Range3d<MCL, MCC, MPL, S>where
S: Unpin,
impl<const MCL: usize, const MCC: usize, const MPL: usize, S> UnwindSafe for Range3d<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