pub struct DataShard {
pub id: String,
pub data: Array2<f64>,
pub targets: Option<Array1<f64>>,
pub metadata: HashMap<String, String>,
pub source_node: Option<NodeId>,
}Expand description
Data shard for distributed processing
Fields§
§id: StringShard identifier
data: Array2<f64>Data content
targets: Option<Array1<f64>>Target values (optional)
metadata: HashMap<String, String>Shard metadata
source_node: Option<NodeId>Source node
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataShard
impl RefUnwindSafe for DataShard
impl Send for DataShard
impl Sync for DataShard
impl Unpin for DataShard
impl UnwindSafe for DataShard
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