pub enum RangeTy {
OpsFrom,
RangeFrom,
OpsFull,
OpsRange,
RangeRange,
OpsInclusive,
RangeInclusive,
OpsTo,
OpsToInclusive,
RangeToInclusive,
}Expand description
A type that can appear as the type of a range expression.
This is a component of Range.
Variants§
OpsFrom
RangeFrom
OpsFull
OpsRange
RangeRange
OpsInclusive
RangeInclusive
OpsTo
OpsToInclusive
RangeToInclusive
Implementations§
Source§impl RangeTy
impl RangeTy
Sourcepub fn implements_into_iterator(self) -> bool
pub fn implements_into_iterator(self) -> bool
Returns whether this type implements IntoIterator — that is, whether it is iterable —
presuming that its element type implements the Step trait.
Sourcepub fn implements_iterator(self) -> bool
pub fn implements_iterator(self) -> bool
Returns whether this type implements Iterator directly, and IntoIterator via blanket
impl, presuming that its element type implements the Step trait.
pub fn limits(self) -> RangeLimits
Trait Implementations§
impl Copy for RangeTy
impl Eq for RangeTy
impl StructuralPartialEq for RangeTy
Auto Trait Implementations§
impl Freeze for RangeTy
impl RefUnwindSafe for RangeTy
impl Send for RangeTy
impl Sync for RangeTy
impl Unpin for RangeTy
impl UnsafeUnpin for RangeTy
impl UnwindSafe for RangeTy
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 moreLayout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
OpsFrom: 0 bytesRangeFrom: 0 bytesOpsFull: 0 bytesOpsRange: 0 bytesRangeRange: 0 bytesOpsInclusive: 0 bytesRangeInclusive: 0 bytesOpsTo: 0 bytesOpsToInclusive: 0 bytesRangeToInclusive: 0 bytes