pub struct StackWindow<'a, I>where
I: IntCO,{ /* private fields */ }Implementations§
Source§impl<'a, I> StackWindow<'a, I>where
I: IntCO,
impl<'a, I> StackWindow<'a, I>where
I: IntCO,
Source§impl<I> StackWindow<'_, I>where
I: IntCO,
impl<I> StackWindow<'_, I>where
I: IntCO,
Sourcepub fn iter_height_runs(
&self,
) -> impl DoubleEndedIterator<Item = HeightRun<I>> + ExactSizeIterator
pub fn iter_height_runs( &self, ) -> impl DoubleEndedIterator<Item = HeightRun<I>> + ExactSizeIterator
Iterates over constant-height runs inside this window.
Unlike IntCOStack::iter_height_segments, this includes zero-height
runs because window-level mappings may assign a non-zero value to
height zero.
Source§impl<I> StackWindow<'_, I>
impl<I> StackWindow<'_, I>
Sourcepub fn par_iter_height_runs(
&self,
) -> impl IndexedParallelIterator<Item = HeightRun<I>>
pub fn par_iter_height_runs( &self, ) -> impl IndexedParallelIterator<Item = HeightRun<I>>
Iterates in parallel over constant-height runs inside this window.
The run range is represented as an indexed integer range, so Rayon can split the work directly. This is mainly useful when the per-run mapping is expensive or the window contains many height changes.
Trait Implementations§
Source§impl<'a, I> Clone for StackWindow<'a, I>
impl<'a, I> Clone for StackWindow<'a, I>
Source§fn clone(&self) -> StackWindow<'a, I>
fn clone(&self) -> StackWindow<'a, I>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a, I> Copy for StackWindow<'a, I>
Auto Trait Implementations§
impl<'a, I> Freeze for StackWindow<'a, I>where
I: Freeze,
impl<'a, I> RefUnwindSafe for StackWindow<'a, I>
impl<'a, I> Send for StackWindow<'a, I>
impl<'a, I> Sync for StackWindow<'a, I>
impl<'a, I> Unpin for StackWindow<'a, I>where
I: Unpin,
impl<'a, I> UnsafeUnpin for StackWindow<'a, I>where
I: UnsafeUnpin,
impl<'a, I> UnwindSafe for StackWindow<'a, I>
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