pub struct CcsdsFlags(/* private fields */);Expand description
CCSDS/AEC option mask stored by data representation template 5.42.
The bit assignments match the libaec API referenced by the WMO template.
Bit 7 is reserved and therefore rejected by CcsdsFlags::from_bits.
Implementations§
Source§impl CcsdsFlags
impl CcsdsFlags
Sourcepub const NONE: CcsdsFlags
pub const NONE: CcsdsFlags
No optional codec behavior.
Sourcepub const SIGNED: CcsdsFlags
pub const SIGNED: CcsdsFlags
Treat sample bit patterns as signed during AEC preprocessing.
GRIB reconstruction still interprets the decoded samples as unsigned scaled differences from the field reference value.
Sourcepub const THREE_BYTE: CcsdsFlags
pub const THREE_BYTE: CcsdsFlags
Samples with 17 through 24 bits use three-byte containers.
Sourcepub const MSB: CcsdsFlags
pub const MSB: CcsdsFlags
Sample containers store their most-significant byte first.
Sourcepub const PREPROCESS: CcsdsFlags
pub const PREPROCESS: CcsdsFlags
Apply the CCSDS unit-delay preprocessor.
Sourcepub const RESTRICTED: CcsdsFlags
pub const RESTRICTED: CcsdsFlags
Use the restricted code-option set for samples no wider than four bits.
Sourcepub const PAD_RSI: CcsdsFlags
pub const PAD_RSI: CcsdsFlags
Decode legacy streams whose reference sample intervals are byte padded.
Sourcepub const NOT_ENFORCE: CcsdsFlags
pub const NOT_ENFORCE: CcsdsFlags
Permit non-standard even block sizes.
Sourcepub const DEFAULT: CcsdsFlags
pub const DEFAULT: CcsdsFlags
ecCodes’ canonical template 5.42 options.
Sourcepub const fn from_bits(bits: u8) -> Option<CcsdsFlags>
pub const fn from_bits(bits: u8) -> Option<CcsdsFlags>
Constructs flags when no reserved bits are set.
Sourcepub const fn contains(self, other: CcsdsFlags) -> bool
pub const fn contains(self, other: CcsdsFlags) -> bool
Returns whether all bits in other are present.
Trait Implementations§
Source§impl BitOr for CcsdsFlags
impl BitOr for CcsdsFlags
Source§type Output = CcsdsFlags
type Output = CcsdsFlags
| operator.Source§fn bitor(self, rhs: CcsdsFlags) -> <CcsdsFlags as BitOr>::Output
fn bitor(self, rhs: CcsdsFlags) -> <CcsdsFlags as BitOr>::Output
| operation. Read moreSource§impl BitOrAssign for CcsdsFlags
impl BitOrAssign for CcsdsFlags
Source§fn bitor_assign(&mut self, rhs: CcsdsFlags)
fn bitor_assign(&mut self, rhs: CcsdsFlags)
|= operation. Read moreSource§impl Clone for CcsdsFlags
impl Clone for CcsdsFlags
Source§fn clone(&self) -> CcsdsFlags
fn clone(&self) -> CcsdsFlags
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CcsdsFlags
Source§impl Debug for CcsdsFlags
impl Debug for CcsdsFlags
Source§impl Default for CcsdsFlags
impl Default for CcsdsFlags
Source§fn default() -> CcsdsFlags
fn default() -> CcsdsFlags
impl Eq for CcsdsFlags
Source§impl Hash for CcsdsFlags
impl Hash for CcsdsFlags
Source§impl PartialEq for CcsdsFlags
impl PartialEq for CcsdsFlags
impl StructuralPartialEq for CcsdsFlags
Auto Trait Implementations§
impl Freeze for CcsdsFlags
impl RefUnwindSafe for CcsdsFlags
impl Send for CcsdsFlags
impl Sync for CcsdsFlags
impl Unpin for CcsdsFlags
impl UnsafeUnpin for CcsdsFlags
impl UnwindSafe for CcsdsFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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