pub struct Strides<BC = Vec<u64>, CC = u64> {
pub stride: CC,
pub length: CC,
pub bounds: BC,
}
Expand description
The first two integers describe a stride pattern, [stride, length].
If the length is zero the collection is empty. The first item
pushed
always becomes the first list element. The next element is the number of
items at position i
whose value is item * (i+1)
. After this comes
the remaining entries in the bounds container.
Fields§
§stride: CC
§length: CC
§bounds: BC
Implementations§
Trait Implementations§
Source§impl Container for Strides
impl Container for Strides
Source§fn reborrow<'b, 'a: 'b>(item: Self::Borrowed<'a>) -> Self::Borrowed<'b>where
Self: 'a,
fn reborrow<'b, 'a: 'b>(item: Self::Borrowed<'a>) -> Self::Borrowed<'b>where
Self: 'a,
Reborrows the borrowed type to a shorter lifetime. See [Columnar::reborrow
] for details.
Source§fn reborrow_ref<'b, 'a: 'b>(item: Self::Ref<'a>) -> Self::Ref<'b>where
Self: 'a,
fn reborrow_ref<'b, 'a: 'b>(item: Self::Ref<'a>) -> Self::Ref<'b>where
Self: 'a,
Reborrows the borrowed type to a shorter lifetime. See [Columnar::reborrow
] for details.
Source§fn borrow<'a>(&'a self) -> Self::Borrowed<'a>
fn borrow<'a>(&'a self) -> Self::Borrowed<'a>
Converts a reference to the type to a borrowed variant.
fn reserve_for<'a, I>(&mut self, selves: I)
Source§fn with_capacity_for<'a, I>(selves: I) -> Self
fn with_capacity_for<'a, I>(selves: I) -> Self
Allocates an empty container that can be extended by
selves
without reallocation. Read moreSource§impl Index for Strides<&[u64], &u64>
impl Index for Strides<&[u64], &u64>
impl<BC: Copy, CC: Copy> Copy for Strides<BC, CC>
Auto Trait Implementations§
impl<BC, CC> Freeze for Strides<BC, CC>
impl<BC, CC> RefUnwindSafe for Strides<BC, CC>where
CC: RefUnwindSafe,
BC: RefUnwindSafe,
impl<BC, CC> Send for Strides<BC, CC>
impl<BC, CC> Sync for Strides<BC, CC>
impl<BC, CC> Unpin for Strides<BC, CC>
impl<BC, CC> UnwindSafe for Strides<BC, CC>where
CC: UnwindSafe,
BC: UnwindSafe,
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