pub struct Dataset {
pub name: String,
pub shape: Vec<usize>,
pub dtype: DataType,
pub data_f64: Vec<f64>,
pub data_i32: Vec<i32>,
pub attributes: Vec<(String, String)>,
}Expand description
A single named, shaped dataset inside a ShdfFile.
Fields§
§name: StringDataset name (must be unique within a file).
shape: Vec<usize>Shape (dimension sizes), e.g. [rows, cols].
dtype: DataTypeDeclared element type.
data_f64: Vec<f64>Floating-point payload (used when dtype is Float64 or Float32).
data_i32: Vec<i32>Integer payload (used when dtype is Int32 or Int64).
attributes: Vec<(String, String)>Per-dataset key/value string attributes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dataset
impl RefUnwindSafe for Dataset
impl Send for Dataset
impl Sync for Dataset
impl Unpin for Dataset
impl UnsafeUnpin for Dataset
impl UnwindSafe for Dataset
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.