pub struct NDArray {
pub unique_id: i32,
pub timestamp: EpicsTimestamp,
pub time_stamp: f64,
pub dims: Vec<NDDimension>,
pub data: NDDataBuffer,
pub attributes: NDAttributeList,
pub codec: Option<Codec>,
}Expand description
N-dimensional array with typed data buffer.
Fields§
§unique_id: i32§timestamp: EpicsTimestamp§time_stamp: f64Separate double-precision timestamp (C++ double timeStamp), independent of epicsTS.
dims: Vec<NDDimension>§data: NDDataBuffer§attributes: NDAttributeList§codec: Option<Codec>Implementations§
Source§impl NDArray
impl NDArray
Sourcepub fn new(dims: Vec<NDDimension>, data_type: NDDataType) -> Self
pub fn new(dims: Vec<NDDimension>, data_type: NDDataType) -> Self
Create a new NDArray with zeroed buffer matching dimensions.
Sourcepub fn info(&self) -> NDArrayInfo
pub fn info(&self) -> NDArrayInfo
Compute layout info for this array (matching C++ NDArray::getInfo).
For 3D arrays, reads the ColorMode attribute to determine which
dimension is X, Y, and color (RGB1, RGB2, or RGB3 layout).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NDArray
impl RefUnwindSafe for NDArray
impl Send for NDArray
impl Sync for NDArray
impl Unpin for NDArray
impl UnsafeUnpin for NDArray
impl UnwindSafe for NDArray
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