pub struct CopyDescriptor<'a> {
    pub binding: Binding,
    pub shape: &'a [usize],
    pub strides: &'a [usize],
    pub elem_size: usize,
}Expand description
A binding with shape and stride info for non-contiguous reading
Fields§
§binding: BindingBinding for the memory resource
shape: &'a [usize]Shape of the resource
strides: &'a [usize]Strides of the resource
elem_size: usizeSize of each element in the resource
Implementations§
Trait Implementations§
Source§impl<'a> Clone for CopyDescriptor<'a>
 
impl<'a> Clone for CopyDescriptor<'a>
Source§fn clone(&self) -> CopyDescriptor<'a>
 
fn clone(&self) -> CopyDescriptor<'a>
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§
impl<'a> Freeze for CopyDescriptor<'a>
impl<'a> RefUnwindSafe for CopyDescriptor<'a>
impl<'a> Send for CopyDescriptor<'a>
impl<'a> Sync for CopyDescriptor<'a>
impl<'a> Unpin for CopyDescriptor<'a>
impl<'a> UnwindSafe for CopyDescriptor<'a>
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