pub struct SharedTile<E: Numeric> { /* private fields */ }Expand description
Payload of [TileKind::SharedTile]. Vectorization is erased from the
type but kept on the runtime slice; project back with view.
Implementations§
Sourcepub fn wrap<V: Size>(tile: StridedTile<E, V>) -> SharedTile<E>
pub fn wrap<V: Size>(tile: StridedTile<E, V>) -> SharedTile<E>
Erase the vectorization from a StridedTile.
Sourcepub fn view<V: Size>(&self) -> StridedTile<E, V>
pub fn view<V: Size>(&self) -> StridedTile<E, V>
Project back to a typed StridedTile. Must match the original
vectorization.
Sourcepub fn __expand_wrap<V: Size>(
scope: &Scope,
tile: <StridedTile<E, V> as CubeType>::ExpandType,
) -> <SharedTile<E> as CubeType>::ExpandType
pub fn __expand_wrap<V: Size>( scope: &Scope, tile: <StridedTile<E, V> as CubeType>::ExpandType, ) -> <SharedTile<E> as CubeType>::ExpandType
Erase the vectorization from a StridedTile.
Sourcepub fn __expand_view<V: Size>(
scope: &Scope,
this: &<Self as CubeType>::ExpandType,
) -> <StridedTile<E, V> as CubeType>::ExpandType
pub fn __expand_view<V: Size>( scope: &Scope, this: &<Self as CubeType>::ExpandType, ) -> <StridedTile<E, V> as CubeType>::ExpandType
Project back to a typed StridedTile. Must match the original
vectorization.
Sourcepub fn copy_from<SE: Numeric, SS: Size, L: Numeric, R: Numeric, Sc: TileScope>(
&mut self,
source: &Tile<SE, Sc>,
)
pub fn copy_from<SE: Numeric, SS: Size, L: Numeric, R: Numeric, Sc: TileScope>( &mut self, source: &Tile<SE, Sc>, )
Write-back leg of Tile::copy_from: routes to the source variant’s
*_write_to_shared helper.
Sourcepub fn __expand_copy_from<SE: Numeric, SS: Size, L: Numeric, R: Numeric, Sc: TileScope>(
scope: &Scope,
this: &mut <Self as CubeType>::ExpandType,
source: &<Tile<SE, Sc> as CubeType>::ExpandType,
)
pub fn __expand_copy_from<SE: Numeric, SS: Size, L: Numeric, R: Numeric, Sc: TileScope>( scope: &Scope, this: &mut <Self as CubeType>::ExpandType, source: &<Tile<SE, Sc> as CubeType>::ExpandType, )
Write-back leg of Tile::copy_from: routes to the source variant’s
*_write_to_shared helper.
Trait Implementations§
Source§fn clone(&self) -> SharedTile<E>
fn clone(&self) -> SharedTile<E>
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 moretype ExpandType = SharedTileExpand<E>
Auto Trait Implementations§
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> CloneExpand for Twhere
T: Clone,
impl<T> CloneExpand for Twhere
T: Clone,
fn __expand_clone_method(&self, _: &Scope) -> T
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