#[non_exhaustive]pub enum SpeedPolicy {
Unsupported,
Stored,
FittedDerivative,
NumericalDifference,
}Expand description
Declares how motion/speed values are represented by an artifact.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unsupported
The artifact does not provide speed values.
Stored
Speeds are stored as direct channels.
FittedDerivative
Speeds are derived analytically from fitted segment derivatives.
NumericalDifference
Speeds are approximated numerically from neighboring decoded samples.
Implementations§
Source§impl SpeedPolicy
impl SpeedPolicy
Sourcepub const fn label(self) -> &'static str
pub const fn label(self) -> &'static str
Returns the compact label used in release-facing summaries.
Sourcepub const fn motion_output_support(self) -> ArtifactOutputSupport
pub const fn motion_output_support(self) -> ArtifactOutputSupport
Returns how motion/speed output is represented when this policy is used.
Trait Implementations§
Source§impl Clone for SpeedPolicy
impl Clone for SpeedPolicy
impl Copy for SpeedPolicy
Source§impl Debug for SpeedPolicy
impl Debug for SpeedPolicy
Source§impl<'de> Deserialize<'de> for SpeedPolicy
impl<'de> Deserialize<'de> for SpeedPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SpeedPolicy
impl Display for SpeedPolicy
impl Eq for SpeedPolicy
Source§impl Hash for SpeedPolicy
impl Hash for SpeedPolicy
Source§impl PartialEq for SpeedPolicy
impl PartialEq for SpeedPolicy
Source§impl Serialize for SpeedPolicy
impl Serialize for SpeedPolicy
impl StructuralPartialEq for SpeedPolicy
Auto Trait Implementations§
impl Freeze for SpeedPolicy
impl RefUnwindSafe for SpeedPolicy
impl Send for SpeedPolicy
impl Sync for SpeedPolicy
impl Unpin for SpeedPolicy
impl UnsafeUnpin for SpeedPolicy
impl UnwindSafe for SpeedPolicy
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