pub struct DecodedF64 {
pub info: BlobInfo,
pub pixels: Vec<f64>,
pub mask: Option<Vec<u8>>,
}Expand description
Promoted f64 pixels, validated metadata, and an optional mask for one blob.
Fields§
§info: BlobInfoValidated blob metadata.
pixels: Vec<f64>Pixel-interleaved samples promoted to f64.
mask: Option<Vec<u8>>Row-major validity bytes, when present.
Implementations§
Source§impl DecodedF64
impl DecodedF64
Sourcepub fn to_ndarray(&self) -> Result<ArrayD<f64>>
pub fn to_ndarray(&self) -> Result<ArrayD<f64>>
Copies the promoted pixels into an ndarray.
§Errors
Returns an error if metadata and sample length disagree.
Sourcepub fn into_ndarray(self) -> Result<ArrayD<f64>>
pub fn into_ndarray(self) -> Result<ArrayD<f64>>
Moves the promoted pixels into an ndarray.
§Errors
Returns an error if metadata and sample length disagree.
Trait Implementations§
Source§impl Clone for DecodedF64
impl Clone for DecodedF64
Source§fn clone(&self) -> DecodedF64
fn clone(&self) -> DecodedF64
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 moreSource§impl Debug for DecodedF64
impl Debug for DecodedF64
Source§impl PartialEq for DecodedF64
impl PartialEq for DecodedF64
impl StructuralPartialEq for DecodedF64
Auto Trait Implementations§
impl Freeze for DecodedF64
impl RefUnwindSafe for DecodedF64
impl Send for DecodedF64
impl Sync for DecodedF64
impl Unpin for DecodedF64
impl UnsafeUnpin for DecodedF64
impl UnwindSafe for DecodedF64
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