pub struct BindingWithMeta {
pub binding: Binding,
pub shape: Vec<usize>,
pub strides: Vec<usize>,
pub elem_size: usize,
}
Expand description
A binding with shape and stride info for non-contiguous reading
Fields§
§binding: Binding
Binding for the memory resource
shape: Vec<usize>
Shape of the resource
strides: Vec<usize>
Strides of the resource
elem_size: usize
Size of each element in the resource
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BindingWithMeta
impl RefUnwindSafe for BindingWithMeta
impl Send for BindingWithMeta
impl Sync for BindingWithMeta
impl Unpin for BindingWithMeta
impl UnwindSafe for BindingWithMeta
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