Trait IBox

Source
pub trait IBox {
    const ID: BoxType;

    // Required method
    fn byte_size(&self) -> usize;
}

Required Associated Constants§

Required Methods§

Source

fn byte_size(&self) -> usize

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.

Implementations on Foreign Types§

Source§

impl<T: IBox> IBox for Option<T>

Source§

const ID: BoxType = T::ID

Source§

fn byte_size(&self) -> usize

Source§

impl<T: IBox> IBox for Vec<T>

Source§

const ID: BoxType = T::ID

Source§

fn byte_size(&self) -> usize

Implementors§

Source§

impl IBox for UnknownBox

Source§

impl IBox for Ftyp

Source§

impl IBox for MdatBox

Source§

impl<P> IBox for MP4Box<P>
where P: PartialBox<ParentData = ()>,

Source§

const ID: BoxType = P::ID