pub struct BufferData {
pub bytes: Vec<u8>,
pub shape: [i64; 8],
pub strides: [i64; 8],
pub ndim: i32,
pub dtype: i32,
}Expand description
N 维带步长缓冲。引擎分配的缓冲总是连续、行优先。
Fields§
§bytes: Vec<u8>§shape: [i64; 8]§strides: [i64; 8]§ndim: i32§dtype: i32Implementations§
Trait Implementations§
Source§impl Clone for BufferData
impl Clone for BufferData
Source§fn clone(&self) -> BufferData
fn clone(&self) -> BufferData
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 moreAuto Trait Implementations§
impl Freeze for BufferData
impl RefUnwindSafe for BufferData
impl Send for BufferData
impl Sync for BufferData
impl Unpin for BufferData
impl UnsafeUnpin for BufferData
impl UnwindSafe for BufferData
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