pub struct RowMajorTile {
pub shape: Tile2,
}Expand description
Row-major contiguous tile: addr = base + row * cols + col.
Fields§
§shape: Tile2Trait Implementations§
Source§impl Clone for RowMajorTile
impl Clone for RowMajorTile
Source§fn clone(&self) -> RowMajorTile
fn clone(&self) -> RowMajorTile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RowMajorTile
impl Debug for RowMajorTile
Source§impl TileIO for RowMajorTile
impl TileIO for RowMajorTile
Source§unsafe fn address(&self, base: *const f32, c: Coord2) -> *const f32
unsafe fn address(&self, base: *const f32, c: Coord2) -> *const f32
Compute the byte address for a coordinate. Used by
load / store / prefetch so impls only need to define
the address arithmetic once.
SAFETY: caller checks bounds.Source§unsafe fn load(&self, base: *const f32, c: Coord2) -> f32
unsafe fn load(&self, base: *const f32, c: Coord2) -> f32
Load a tile element by
(row, col).
SAFETY: caller ensures the address is valid for read.impl Copy for RowMajorTile
Auto Trait Implementations§
impl Freeze for RowMajorTile
impl RefUnwindSafe for RowMajorTile
impl Send for RowMajorTile
impl Sync for RowMajorTile
impl Unpin for RowMajorTile
impl UnsafeUnpin for RowMajorTile
impl UnwindSafe for RowMajorTile
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
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