Struct ascom_alpaca::api::ImageArray
source · pub struct ImageArray { /* private fields */ }Available on crate feature
camera only.Expand description
Image array.
Image is represented as a 3D array regardless of its actual rank. If the image is a 2D image, the third dimension will have length 1.
You can retrieve rank as an enum via the ImageArray::rank method.
This type is cheaply clonable.
Implementations§
source§impl ImageArray
impl ImageArray
sourcepub fn rank(&self) -> ImageArrayRank
pub fn rank(&self) -> ImageArrayRank
Retrieve actual rank of the image.
Trait Implementations§
source§impl Clone for ImageArray
impl Clone for ImageArray
source§fn clone(&self) -> ImageArray
fn clone(&self) -> ImageArray
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ImageArray
impl Debug for ImageArray
source§impl Deref for ImageArray
impl Deref for ImageArray
source§impl<T: AsTransmissionElementType> From<ArrayBase<OwnedRepr<T>, Dim<[usize; 2]>>> for ImageArray
impl<T: AsTransmissionElementType> From<ArrayBase<OwnedRepr<T>, Dim<[usize; 2]>>> for ImageArray
source§impl<T: AsTransmissionElementType> From<ArrayBase<OwnedRepr<T>, Dim<[usize; 3]>>> for ImageArray
impl<T: AsTransmissionElementType> From<ArrayBase<OwnedRepr<T>, Dim<[usize; 3]>>> for ImageArray
source§impl<T: AsTransmissionElementType> From<ArrayBase<ViewRepr<&T>, Dim<[usize; 2]>>> for ImageArray
impl<T: AsTransmissionElementType> From<ArrayBase<ViewRepr<&T>, Dim<[usize; 2]>>> for ImageArray
source§fn from(array: ArrayView2<'_, T>) -> Self
fn from(array: ArrayView2<'_, T>) -> Self
Converts to this type from the input type.
source§impl<T: AsTransmissionElementType> From<ArrayBase<ViewRepr<&T>, Dim<[usize; 3]>>> for ImageArray
impl<T: AsTransmissionElementType> From<ArrayBase<ViewRepr<&T>, Dim<[usize; 3]>>> for ImageArray
source§fn from(array: ArrayView3<'_, T>) -> Self
fn from(array: ArrayView3<'_, T>) -> Self
Converts to this type from the input type.
source§impl PartialEq<ImageArray> for ImageArray
impl PartialEq<ImageArray> for ImageArray
source§fn eq(&self, other: &ImageArray) -> bool
fn eq(&self, other: &ImageArray) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ImageArray
Available on crate feature server only.
impl Serialize for ImageArray
Available on crate feature
server only.impl Eq for ImageArray
impl StructuralEq for ImageArray
impl StructuralPartialEq for ImageArray
Auto Trait Implementations§
impl RefUnwindSafe for ImageArray
impl Send for ImageArray
impl Sync for ImageArray
impl Unpin for ImageArray
impl UnwindSafe for ImageArray
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.