pub struct SharedMemDecl {
pub ty: CudaType,
pub name: String,
pub size: Option<CudaExpr>,
}Expand description
A __shared__ memory declaration inside a kernel.
Fields§
§ty: CudaTypeElement type
name: StringVariable name
size: Option<CudaExpr>Array size (None for dynamic shared memory)
Trait Implementations§
Source§fn clone(&self) -> SharedMemDecl
fn clone(&self) -> SharedMemDecl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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