pub struct NDArray {
pub unique_id: i32,
pub timestamp: EpicsTimestamp,
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§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.
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