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§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl CanonicalFixedSizedPod for bool

Serialize into a Bool type pod.

source§

impl CanonicalFixedSizedPod for f32

Serialize into a Float type pod.

source§

impl CanonicalFixedSizedPod for f64

Serialize into a Double type pod.

source§

impl CanonicalFixedSizedPod for i32

Serialize into a Int type pod.

source§

impl CanonicalFixedSizedPod for i64

Serialize into a Long type pod.

source§

impl CanonicalFixedSizedPod for ()

Serialize into a None type pod.

Implementors§

source§

impl CanonicalFixedSizedPod for Fd

source§

impl CanonicalFixedSizedPod for Fraction

Serialize into a Fraction type pod.

source§

impl CanonicalFixedSizedPod for Id

source§

impl CanonicalFixedSizedPod for Rectangle

Serialize into a Rectangle type pod.