pub struct Array {
pub name: Option<String>,
pub ty: LigoType,
pub unit: Option<String>,
pub dims: Vec<Dim>,
pub encoding: ArrayEncoding,
pub delimiter: char,
pub values: Vec<f64>,
}Expand description
An Array element.
Numeric data is widened to f64 so callers do not have to enumerate
per-type variants; the original LigoType is recorded so the writer
re-encodes at the correct precision. Shape is in Array::dims; the
flat values buffer is in C order (row-major).
Fields§
§name: Option<String>§ty: LigoType§unit: Option<String>§dims: Vec<Dim>§encoding: ArrayEncoding§delimiter: char§values: Vec<f64>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Array
impl RefUnwindSafe for Array
impl Send for Array
impl Sync for Array
impl Unpin for Array
impl UnsafeUnpin for Array
impl UnwindSafe for Array
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