pub struct Walk { /* private fields */ }Implementations§
Source§impl Walk
impl Walk
Sourcepub fn routed(self, axis: Axis, coord: usize) -> Walk
pub fn routed(self, axis: Axis, coord: usize) -> Walk
This walk taking one step along axis, at the coordinate coord.
The caller must keep coord within the axis’s extent; nothing checks it.
Sourcepub fn position(&self, axis: Axis) -> usize
pub fn position(&self, axis: Axis) -> usize
This instance’s place among the workers the level deals axis to, 0 for a walked axis:
which plane of those taking axis in runs, where the tiles a worker walks no longer name
it.
Sourcepub fn planes(&self) -> Planes
pub fn planes(&self) -> Planes
The planes below this walk’s regions, each once, at its first step (Region::planes):
for a walk with no single region above it, such as a run of interleaved steps.
Sourcepub fn __expand_routed(
scope: &Scope,
this: <Self as CubeType>::ExpandType,
axis: Axis,
coord: <usize as CubeType>::ExpandType,
) -> <Walk as CubeType>::ExpandType
pub fn __expand_routed( scope: &Scope, this: <Self as CubeType>::ExpandType, axis: Axis, coord: <usize as CubeType>::ExpandType, ) -> <Walk as CubeType>::ExpandType
This walk taking one step along axis, at the coordinate coord.
The caller must keep coord within the axis’s extent; nothing checks it.
Sourcepub fn __expand_total(
scope: &Scope,
this: &<Self as CubeType>::ExpandType,
) -> <usize as CubeType>::ExpandType
pub fn __expand_total( scope: &Scope, this: &<Self as CubeType>::ExpandType, ) -> <usize as CubeType>::ExpandType
The region count.
Sourcepub fn __expand_position(
scope: &Scope,
this: &<Self as CubeType>::ExpandType,
axis: Axis,
) -> <usize as CubeType>::ExpandType
pub fn __expand_position( scope: &Scope, this: &<Self as CubeType>::ExpandType, axis: Axis, ) -> <usize as CubeType>::ExpandType
This instance’s place among the workers the level deals axis to, 0 for a walked axis:
which plane of those taking axis in runs, where the tiles a worker walks no longer name
it.
Sourcepub fn __expand_region(
scope: &Scope,
this: &<Self as CubeType>::ExpandType,
i: <usize as CubeType>::ExpandType,
) -> <Region as CubeType>::ExpandType
pub fn __expand_region( scope: &Scope, this: &<Self as CubeType>::ExpandType, i: <usize as CubeType>::ExpandType, ) -> <Region as CubeType>::ExpandType
The i-th region of the walk.
Sourcepub fn __expand_planes(
scope: &Scope,
this: &<Self as CubeType>::ExpandType,
) -> <Planes as CubeType>::ExpandType
pub fn __expand_planes( scope: &Scope, this: &<Self as CubeType>::ExpandType, ) -> <Planes as CubeType>::ExpandType
The planes below this walk’s regions, each once, at its first step (Region::planes):
for a walk with no single region above it, such as a run of interleaved steps.
Source§impl Walk
impl Walk
Sourcepub fn portion(self, below: Level) -> Portion
pub fn portion(self, below: Level) -> Portion
This instance’s portion of the level’s flat index, counted in steps of below.
Sourcepub fn __expand_portion(
scope: &Scope,
this: <Self as CubeType>::ExpandType,
below: Level,
) -> <Portion as CubeType>::ExpandType
pub fn __expand_portion( scope: &Scope, this: <Self as CubeType>::ExpandType, below: Level, ) -> <Portion as CubeType>::ExpandType
This instance’s portion of the level’s flat index, counted in steps of below.
Trait Implementations§
Source§impl IntoIterator for Walk
for region in walk visits the regions in order.
impl IntoIterator for Walk
for region in walk visits the regions in order.
Auto Trait Implementations§
impl Freeze for Walk
impl RefUnwindSafe for Walk
impl Send for Walk
impl Sync for Walk
impl Unpin for Walk
impl UnsafeUnpin for Walk
impl UnwindSafe for Walk
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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