pub struct Metadata { /* private fields */ }
Expand description
Helper to calculate metadata offsets based on buffer count and position
Implementations§
Source§impl Metadata
impl Metadata
pub fn new(num_meta: u32, num_extended_meta: u32) -> Self
pub fn static_len(&self) -> u32
pub fn buffer_len_index(&self, buffer_idx: u32) -> u32
pub fn len_index(&self, buffer_idx: u32) -> u32
pub fn rank_index(&self, buffer_idx: u32) -> u32
pub fn shape_offset_index(&self, buffer_idx: u32) -> u32
pub fn stride_offset_index(&self, buffer_idx: u32) -> u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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