pub enum TdmInputErrorKind {
Show 13 variants
Missing,
FloatParse,
NonFinite,
NotPositive,
OutOfRange,
InvalidIndex,
UnknownKeyword,
UnexpectedUnit,
NonInteger,
Negative,
NegativeZero,
UnitMismatch,
DecimalMismatch,
}Expand description
Boundary validation failure category for TDM parsing and encoding.
Variants§
Missing
A required field or token was absent.
FloatParse
A floating-point value could not be parsed.
NonFinite
A floating-point value was NaN or infinite.
NotPositive
A positive field was zero or negative.
OutOfRange
A numeric value was outside the CCSDS domain for that keyword.
InvalidIndex
An indexed keyword or path component did not contain a valid integer.
UnknownKeyword
A TDM data keyword is not defined by CCSDS 503.0-B-2 table 3-5.
UnexpectedUnit
A displayed unit was present even though TDM KVN units are table-defined.
NonInteger
An integer-valued field contained a fractional value.
Negative
A non-negative field contained a negative value.
NegativeZero
A numeric token used a negative zero form.
UnitMismatch
A record unit does not match CCSDS 503.0-B-2 table 3-5.
DecimalMismatch
The stored decimal token and f64 value do not parse to the same bits.
Trait Implementations§
Source§impl Clone for TdmInputErrorKind
impl Clone for TdmInputErrorKind
Source§fn clone(&self) -> TdmInputErrorKind
fn clone(&self) -> TdmInputErrorKind
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 TdmInputErrorKind
Source§impl Debug for TdmInputErrorKind
impl Debug for TdmInputErrorKind
Source§impl Display for TdmInputErrorKind
impl Display for TdmInputErrorKind
impl Eq for TdmInputErrorKind
Source§impl PartialEq for TdmInputErrorKind
impl PartialEq for TdmInputErrorKind
Source§fn eq(&self, other: &TdmInputErrorKind) -> bool
fn eq(&self, other: &TdmInputErrorKind) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TdmInputErrorKind
Auto Trait Implementations§
impl Freeze for TdmInputErrorKind
impl RefUnwindSafe for TdmInputErrorKind
impl Send for TdmInputErrorKind
impl Sync for TdmInputErrorKind
impl Unpin for TdmInputErrorKind
impl UnsafeUnpin for TdmInputErrorKind
impl UnwindSafe for TdmInputErrorKind
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.