Expand description
(internals) A type containing a range case for a switch
statement.
Exported under the internals
feature only.
Variants
ExclusiveInt(Range<INT>, usize)
Exclusive range.
InclusiveInt(RangeInclusive<INT>, usize)
Inclusive range.
Implementations
sourceimpl RangeCase
impl RangeCase
sourcepub fn is_inclusive(&self) -> bool
pub fn is_inclusive(&self) -> bool
Is the specified range inclusive?
sourcepub fn index(&self) -> usize
pub fn index(&self) -> usize
Get the index to the ConditionalExpr
.
sourcepub fn set_index(&mut self, index: usize)
pub fn set_index(&mut self, index: usize)
Set the index to the ConditionalExpr
.
Trait Implementations
sourceimpl From<RangeInclusive<i64>> for RangeCase
impl From<RangeInclusive<i64>> for RangeCase
sourcefn from(value: RangeInclusive<INT>) -> Self
fn from(value: RangeInclusive<INT>) -> Self
Converts to this type from the input type.
sourceimpl IntoIterator for RangeCase
impl IntoIterator for RangeCase
Auto Trait Implementations
impl RefUnwindSafe for RangeCase
impl Send for RangeCase
impl Sync for RangeCase
impl Unpin for RangeCase
impl UnwindSafe for RangeCase
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more