Struct rustc_mir_build::thir::pattern::deconstruct_pat::SplitIntRange [−][src]
Expand description
A range of integers that is partitioned into disjoint subranges. This does constructor splitting for integer ranges as explained at the top of the file.
This is fed multiple ranges, and returns an output that covers the input, but is split so that the only intersections between an output range and a seen range are inclusions. No output range straddles the boundary of one of the inputs.
The following input:
|-------------------------| // `self` |------| |----------| |----| |-------| |-------|
would be iterated over as follows:
||---|--||-|---|---|---|--|
Fields
range: IntRangeExpand description
The range we are splitting
borders: Vec<IntBorder>Expand description
The borders of ranges we have seen. They are all contained within range. This is kept
sorted.
Implementations
impl SplitIntRange[src]
impl SplitIntRange[src]Trait Implementations
impl Clone for SplitIntRange[src]
impl Clone for SplitIntRange[src]fn clone(&self) -> SplitIntRange[src]
fn clone(&self) -> SplitIntRange[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for SplitIntRange
impl Send for SplitIntRange
impl Sync for SplitIntRange
impl Unpin for SplitIntRange
impl UnwindSafe for SplitIntRange
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,