pub struct SpanDim { /* private fields */ }
Expand description
Span information in one dimension
Implementations§
Source§impl SpanDim
impl SpanDim
pub fn new(shape: u32, stage: u32, cube_pos: u32, num_cubes: u32) -> SpanDim
pub fn num_iterations(&self) -> u32
pub fn __expand_new( context: &mut Scope, shape: <u32 as CubeType>::ExpandType, stage: <u32 as CubeType>::ExpandType, cube_pos: <u32 as CubeType>::ExpandType, num_cubes: <u32 as CubeType>::ExpandType, ) -> <SpanDim as CubeType>::ExpandType
pub fn __expand_num_iterations( context: &mut Scope, this: <Self as CubeType>::ExpandType, ) -> <u32 as CubeType>::ExpandType
Trait Implementations§
Source§impl CubeType for SpanDim
impl CubeType for SpanDim
type ExpandType = SpanDimExpand
Source§fn init(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
fn init(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
Wrapper around the init method, necessary to type inference.
Auto Trait Implementations§
impl Freeze for SpanDim
impl RefUnwindSafe for SpanDim
impl Send for SpanDim
impl Sync for SpanDim
impl Unpin for SpanDim
impl UnwindSafe for SpanDim
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