pub struct DecodedMaskSet {
pub nan: Option<Vec<bool>>,
pub pos_inf: Option<Vec<bool>>,
pub neg_inf: Option<Vec<bool>>,
}Expand description
Three-kind set of decompressed bitmasks, one entry per mask kind
present in the frame. Each Vec<bool> has length
n_elements (the descriptor’s shape product). Mirrors the
encoder’s [crate::substitute_and_mask::MaskSet] but carries no
element-count field — callers get it from the descriptor.
Fields§
§nan: Option<Vec<bool>>Positions that held NaN at encode time, or None when the
frame carried no NaN mask. For complex dtypes a single bit
covers BOTH (real, imag) components — see
plans/WIRE_FORMAT.md §6.5.2 for the priority rule.
pos_inf: Option<Vec<bool>>Positions that held +∞, or None. Never overlaps with
nan at the same index (encoder’s priority rule assigns
each element to at most one kind).
neg_inf: Option<Vec<bool>>Positions that held −∞, or None. Never overlaps with
nan or pos_inf at the same index.
Implementations§
Trait Implementations§
Source§impl Clone for DecodedMaskSet
impl Clone for DecodedMaskSet
Source§fn clone(&self) -> DecodedMaskSet
fn clone(&self) -> DecodedMaskSet
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 DecodedMaskSet
impl Debug for DecodedMaskSet
Source§impl Default for DecodedMaskSet
impl Default for DecodedMaskSet
Source§fn default() -> DecodedMaskSet
fn default() -> DecodedMaskSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DecodedMaskSet
impl RefUnwindSafe for DecodedMaskSet
impl Send for DecodedMaskSet
impl Sync for DecodedMaskSet
impl Unpin for DecodedMaskSet
impl UnsafeUnpin for DecodedMaskSet
impl UnwindSafe for DecodedMaskSet
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more