Skip to main content

SerializeAtom

Trait SerializeAtom 

Source
pub trait SerializeAtom: Sized {
    // Required methods
    fn atom_type(&self) -> FourCC;
    fn into_body_bytes(self) -> Vec<u8> ;

    // Provided method
    fn into_bytes(self) -> Vec<u8>  { ... }
}

Required Methods§

Source

fn atom_type(&self) -> FourCC

FourCC representing atom type

Source

fn into_body_bytes(self) -> Vec<u8>

Serialize an atom’s body

Provided Methods§

Source

fn into_bytes(self) -> Vec<u8>

Serialize an atom into bytes

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§