Trait Mp4Writable

Source
pub trait Mp4Writable {
    // Required methods
    fn byte_size(&self) -> usize;
    fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>;
}

Required Methods§

Source

fn byte_size(&self) -> usize

Source

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

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 Mp4Writable for i8

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl Mp4Writable for i16

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl Mp4Writable for i32

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl Mp4Writable for i64

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl Mp4Writable for u8

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl Mp4Writable for u16

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4 + ?Sized>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl Mp4Writable for u32

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl Mp4Writable for u64

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl Mp4Writable for String

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl Mp4Writable for Uuid

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl<A: Mp4Writable + Send + Sync> Mp4Writable for (A,)

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl<A: Mp4Writable + Send + Sync, B: Mp4Writable + Send + Sync> Mp4Writable for (A, B)

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl<A: Mp4Writable + Send + Sync, B: Mp4Writable + Send + Sync, C: Mp4Writable + Send + Sync> Mp4Writable for (A, B, C)

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl<A: Mp4Writable + Send + Sync, B: Mp4Writable + Send + Sync, C: Mp4Writable + Send + Sync, D: Mp4Writable + Send + Sync> Mp4Writable for (A, B, C, D)

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl<A: Mp4Writable + Send + Sync, B: Mp4Writable + Send + Sync, C: Mp4Writable + Send + Sync, D: Mp4Writable + Send + Sync, E: Mp4Writable + Send + Sync> Mp4Writable for (A, B, C, D, E)

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl<A: Mp4Writable + Send + Sync, B: Mp4Writable + Send + Sync, C: Mp4Writable + Send + Sync, D: Mp4Writable + Send + Sync, E: Mp4Writable + Send + Sync, F: Mp4Writable + Send + Sync> Mp4Writable for (A, B, C, D, E, F)

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl<A: Mp4Writable + Send + Sync, B: Mp4Writable + Send + Sync, C: Mp4Writable + Send + Sync, D: Mp4Writable + Send + Sync, E: Mp4Writable + Send + Sync, F: Mp4Writable + Send + Sync, G: Mp4Writable + Send + Sync> Mp4Writable for (A, B, C, D, E, F, G)

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl<Frac: Send + Sync> Mp4Writable for FixedI16<Frac>

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl<Frac: Send + Sync> Mp4Writable for FixedI32<Frac>

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl<T: Mp4Writable + Send + Sync> Mp4Writable for Option<T>

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl<T: Mp4Writable + Send + Sync> Mp4Writable for [T]

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl<T: Mp4Writable + Send + Sync> Mp4Writable for Vec<T>

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Source§

impl<T: Mp4Writable + Send + Sync, const N: usize> Mp4Writable for [T; N]

Source§

fn byte_size(&self) -> usize

Source§

fn write<W: WriteMp4>(&self, writer: &mut W) -> Result<usize, MP4Error>

Implementors§