pub struct VariableData {
pub name: String,
pub data: ArrayD<f64>,
pub units: String,
pub var_type: VariableType,
}Fields§
§name: String§data: ArrayD<f64>§units: String§var_type: VariableTypeImplementations§
Source§impl VariableData
impl VariableData
pub fn new( name: String, data: ArrayD<f64>, units: String, var_type: VariableType, ) -> Self
pub fn zeros( name: String, shape: &[usize], units: String, var_type: VariableType, ) -> Self
pub fn shape(&self) -> &[usize]
pub fn size(&self) -> usize
pub fn view(&self) -> ArrayViewD<'_, f64>
pub fn view_mut(&mut self) -> ArrayViewMutD<'_, f64>
pub fn flatten(&self) -> Vec<f64>
pub fn from_flat( name: String, flat_data: &[f64], shape: &[usize], units: String, var_type: VariableType, ) -> Result<Self>
Trait Implementations§
Source§impl Clone for VariableData
impl Clone for VariableData
Source§fn clone(&self) -> VariableData
fn clone(&self) -> VariableData
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 VariableData
impl RefUnwindSafe for VariableData
impl Send for VariableData
impl Sync for VariableData
impl Unpin for VariableData
impl UnsafeUnpin for VariableData
impl UnwindSafe for VariableData
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request