pub enum RangeEnd<T> {
Closed(T),
Open,
}Expand description
Determines whether a Range is closed or open.
Variants§
Closed(T)
A closed range consists of a start value and an end_value.
Open
An open range consists only of a start value.
Implementations§
Trait Implementations§
Source§impl<'arbitrary, T: Arbitrary<'arbitrary>> Arbitrary<'arbitrary> for RangeEnd<T>
impl<'arbitrary, T: Arbitrary<'arbitrary>> Arbitrary<'arbitrary> for RangeEnd<T>
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<T: Ord> Ord for RangeEnd<T>
impl<T: Ord> Ord for RangeEnd<T>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize> PartialEq<RangeEnd<Path<MCL, MCC, MPL>>> for Path<MCL, MCC, MPL>
impl<const MCL: usize, const MCC: usize, const MPL: usize> PartialEq<RangeEnd<Path<MCL, MCC, MPL>>> for Path<MCL, MCC, MPL>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize> PartialOrd<RangeEnd<Path<MCL, MCC, MPL>>> for Path<MCL, MCC, MPL>
impl<const MCL: usize, const MCC: usize, const MPL: usize> PartialOrd<RangeEnd<Path<MCL, MCC, MPL>>> for Path<MCL, MCC, MPL>
Source§impl PartialOrd<RangeEnd<u64>> for u64
impl PartialOrd<RangeEnd<u64>> for u64
Source§impl<T> PartialOrd<T> for RangeEnd<T>where
T: PartialOrd,
impl<T> PartialOrd<T> for RangeEnd<T>where
T: PartialOrd,
Source§impl<T: PartialOrd> PartialOrd for RangeEnd<T>
impl<T: PartialOrd> PartialOrd for RangeEnd<T>
impl<T: Copy> Copy for RangeEnd<T>
impl<T: Eq> Eq for RangeEnd<T>
impl<T> StructuralPartialEq for RangeEnd<T>
Auto Trait Implementations§
impl<T> Freeze for RangeEnd<T>where
T: Freeze,
impl<T> RefUnwindSafe for RangeEnd<T>where
T: RefUnwindSafe,
impl<T> Send for RangeEnd<T>where
T: Send,
impl<T> Sync for RangeEnd<T>where
T: Sync,
impl<T> Unpin for RangeEnd<T>where
T: Unpin,
impl<T> UnwindSafe for RangeEnd<T>where
T: 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