#[non_exhaustive]pub enum MeasurementAvailability {
Measured,
NotApplicable,
Unavailable,
}Expand description
Availability status of a clip fact that does not apply to every clip, and that can additionally fail to derive even when it does apply.
This distinguishes two very different absences that a bare Option
cannot: Self::NotApplicable means this clip has no subject for the
fact at all (for example, no declared loop, no resolvable gait roles, or
no root/hips travel quantity), while Self::Unavailable means the
subject applies but derivation failed or the available evidence was
insufficient. A consumer that must fail closed on a missing applicable
fact should treat only Self::Unavailable that way; Self::NotApplicable
remains a legitimate, expected absence. The sibling value field is
present exactly when this status is Self::Measured.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Measured
The fact was measured; the sibling value field carries the measurement.
NotApplicable
This clip has no subject for the fact.
The fact applies to this clip, but it could not be derived.
Trait Implementations§
Source§impl Clone for MeasurementAvailability
impl Clone for MeasurementAvailability
Source§fn clone(&self) -> MeasurementAvailability
fn clone(&self) -> MeasurementAvailability
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more