pub enum AreaSubspace<S> {
Any,
Id(S),
}Expand description
The possible values of an Area’s subspace.
Variants§
Any
A value that signals that an Area includes Entries with arbitrary subspace_ids.
Id(S)
A concrete SubspaceId.
Implementations§
Source§impl<S> AreaSubspace<S>
impl<S> AreaSubspace<S>
Sourcepub fn is_any(&self) -> bool
pub fn is_any(&self) -> bool
Returns whether this AreaSubspace includes Entries with arbitrary subspace_ids.
Source§impl<S> AreaSubspace<S>where
S: PartialEq,
impl<S> AreaSubspace<S>where
S: PartialEq,
Sourcepub fn includes(&self, sub: &S) -> bool
pub fn includes(&self, sub: &S) -> bool
Returns whether this AreaSubspace includes a given SubspaceId.
Source§impl<S> AreaSubspace<S>
impl<S> AreaSubspace<S>
Sourcepub fn includes_area_subspace(&self, other: &Self) -> bool
pub fn includes_area_subspace(&self, other: &Self) -> bool
Returns whether this AreaSubspace includes a given AreaSubspace.
Trait Implementations§
Source§impl<'arbitrary, S: Arbitrary<'arbitrary>> Arbitrary<'arbitrary> for AreaSubspace<S>
impl<'arbitrary, S: Arbitrary<'arbitrary>> Arbitrary<'arbitrary> for AreaSubspace<S>
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
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<S: Clone> Clone for AreaSubspace<S>
impl<S: Clone> Clone for AreaSubspace<S>
Source§fn clone(&self) -> AreaSubspace<S>
fn clone(&self) -> AreaSubspace<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: Debug> Debug for AreaSubspace<S>
impl<S: Debug> Debug for AreaSubspace<S>
Source§impl<S: Hash> Hash for AreaSubspace<S>
impl<S: Hash> Hash for AreaSubspace<S>
Source§impl<S: Ord> Ord for AreaSubspace<S>
impl<S: Ord> Ord for AreaSubspace<S>
Source§fn cmp(&self, other: &AreaSubspace<S>) -> Ordering
fn cmp(&self, other: &AreaSubspace<S>) -> Ordering
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<S: PartialEq> PartialEq<S> for AreaSubspace<S>
impl<S: PartialEq> PartialEq<S> for AreaSubspace<S>
Source§impl<S: PartialEq> PartialEq for AreaSubspace<S>
impl<S: PartialEq> PartialEq for AreaSubspace<S>
Source§impl<S: PartialOrd> PartialOrd for AreaSubspace<S>
impl<S: PartialOrd> PartialOrd for AreaSubspace<S>
impl<S: Eq> Eq for AreaSubspace<S>
impl<S> StructuralPartialEq for AreaSubspace<S>
Auto Trait Implementations§
impl<S> Freeze for AreaSubspace<S>where
S: Freeze,
impl<S> RefUnwindSafe for AreaSubspace<S>where
S: RefUnwindSafe,
impl<S> Send for AreaSubspace<S>where
S: Send,
impl<S> Sync for AreaSubspace<S>where
S: Sync,
impl<S> Unpin for AreaSubspace<S>where
S: Unpin,
impl<S> UnwindSafe for AreaSubspace<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