Trait libspa::pod::CanonicalFixedSizedPod
source · pub trait CanonicalFixedSizedPod: CanonicalFixedSizedPodSeal { }
Expand description
Implementors of this trait are the canonical representation of a specific type of fixed sized SPA pod.
They can be used as an output type for FixedSizedPod
implementors
and take care of the actual serialization/deserialization from/to the type of raw SPA pod they represent.
The trait is sealed, so it can’t be implemented outside of this crate. This is to ensure that no invalid pod can be serialized.
If you want to have your type convert from and to a fixed sized pod, implement FixedSizedPod
instead and choose
a fitting implementor of this trait as the CanonicalType
instead.
Object Safety§
Implementations on Foreign Types§
impl CanonicalFixedSizedPod for bool
Serialize into a Bool
type pod.
impl CanonicalFixedSizedPod for f32
Serialize into a Float
type pod.
impl CanonicalFixedSizedPod for f64
Serialize into a Double
type pod.
impl CanonicalFixedSizedPod for i32
Serialize into a Int
type pod.
impl CanonicalFixedSizedPod for i64
Serialize into a Long
type pod.
impl CanonicalFixedSizedPod for ()
Serialize into a None
type pod.
Implementors§
impl CanonicalFixedSizedPod for Fd
impl CanonicalFixedSizedPod for Fraction
Serialize into a Fraction
type pod.
impl CanonicalFixedSizedPod for Id
impl CanonicalFixedSizedPod for Rectangle
Serialize into a Rectangle
type pod.