Trait FixedOptionalFeatures

Source
pub trait FixedOptionalFeatures
where Self: PartialOrd<f16> + PartialOrd<bf16> + Serialize + for<'de> Deserialize<'de>,
{ }
Expand description

This trait is used to provide supertraits to the Fixed trait depending on the crate’s optional features.

  1. If the f16 feature is enabled, PartialOrd<f16> and PartialOrd<bf16> are supertraits of Fixed.
  2. If the serde feature is enabled, Serialize and Deserialize are supertraits of Fixed.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§