pub struct Hdf5SparseMetadata {
pub format: String,
pub dtype: String,
pub shape: Vec<usize>,
pub nnz: usize,
pub sparsity: f64,
pub created: String,
pub torsh_version: String,
pub attributes: HashMap<String, String>,
}
Expand description
HDF5 sparse matrix metadata
Fields§
§format: String
Matrix format (COO, CSR, CSC, etc.)
dtype: String
Data type (f32, f64, etc.)
shape: Vec<usize>
Matrix shape [rows, cols]
nnz: usize
Number of non-zero elements
sparsity: f64
Sparsity ratio
created: String
Creation timestamp
torsh_version: String
ToRSh version
attributes: HashMap<String, String>
Additional custom attributes
Implementations§
Trait Implementations§
Source§impl Clone for Hdf5SparseMetadata
impl Clone for Hdf5SparseMetadata
Source§fn clone(&self) -> Hdf5SparseMetadata
fn clone(&self) -> Hdf5SparseMetadata
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 Freeze for Hdf5SparseMetadata
impl RefUnwindSafe for Hdf5SparseMetadata
impl Send for Hdf5SparseMetadata
impl Sync for Hdf5SparseMetadata
impl Unpin for Hdf5SparseMetadata
impl UnwindSafe for Hdf5SparseMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more