pub struct OffsetAxisScheduler { /* private fields */ }Expand description
Schedules indices for one axis with rotation and wrapping.
Combines:
inner_offset: rotation inside this partition.outer_offset: global shift for skipping previous partitions.
Implementations§
Source§impl OffsetAxisScheduler
impl OffsetAxisScheduler
pub fn new( inner_offset: u32, partition_index: u32, len: u32, ) -> OffsetAxisScheduler
pub fn map(&self, i: u32) -> u32
pub fn __expand_new( scope: &Scope, inner_offset: <u32 as CubeType>::ExpandType, partition_index: <u32 as CubeType>::ExpandType, len: u32, ) -> <OffsetAxisScheduler as CubeType>::ExpandType
pub fn __expand_map( scope: &Scope, this: &<Self as CubeType>::ExpandType, i: <u32 as CubeType>::ExpandType, ) -> <u32 as CubeType>::ExpandType
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OffsetAxisScheduler
impl RefUnwindSafe for OffsetAxisScheduler
impl Send for OffsetAxisScheduler
impl Sync for OffsetAxisScheduler
impl Unpin for OffsetAxisScheduler
impl UnsafeUnpin for OffsetAxisScheduler
impl UnwindSafe for OffsetAxisScheduler
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> 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