pub struct Float64BlockView {
pub block: Arc<[f64]>,
pub rows: usize,
pub cols: usize,
}Expand description
O(1) zero-copy view of a block-backed homogeneous-float DataFrame, matching
pandas’ df.values on a single-block float frame (an F-contiguous
(rows, cols) array sharing the frame’s memory).
block is column-major: element (row, col) is block[col * rows + row],
i.e. the (rows, cols) logical matrix is F-contiguous. Obtaining one is an
Arc refcount bump — no f64 data is copied.
Fields§
§block: Arc<[f64]>§rows: usize§cols: usizeTrait Implementations§
Source§impl Clone for Float64BlockView
impl Clone for Float64BlockView
Source§fn clone(&self) -> Float64BlockView
fn clone(&self) -> Float64BlockView
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 Float64BlockView
impl RefUnwindSafe for Float64BlockView
impl Send for Float64BlockView
impl Sync for Float64BlockView
impl Unpin for Float64BlockView
impl UnsafeUnpin for Float64BlockView
impl UnwindSafe for Float64BlockView
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