pub struct Ranges<'a> {
pub starts: &'a [usize],
pub lens: &'a [usize],
}Expand description
One range of positions for each group, in any order, as each one’s start and length: a segmented array’s vector items as their entries in its leaf. Each range folds by Reduction::slice and scans by Reduction::scan. An empty range folds to R::unit().
Fields§
§starts: &'a [usize]Where each range starts.
lens: &'a [usize]How many positions each range holds.
Trait Implementations§
impl<'a> Copy for Ranges<'a>
Auto Trait Implementations§
impl<'a> Forget for Ranges<'a>
impl<'a> Freeze for Ranges<'a>
impl<'a> RefUnwindSafe for Ranges<'a>
impl<'a> Send for Ranges<'a>
impl<'a> Sync for Ranges<'a>
impl<'a> Unpin for Ranges<'a>
impl<'a> UnsafeUnpin for Ranges<'a>
impl<'a> UnwindSafe for Ranges<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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