Trait MpvFormat

Source
pub trait MpvFormat: Sized {
    const MPV_FORMAT: Format;
}
Expand description

Defines a type understood by mpv.

Required Associated Constants§

Source

const MPV_FORMAT: Format

Defines the mpv_format used with mpv when transferring and requesting data.

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 MpvFormat for &str

Source§

const MPV_FORMAT: Format = Format::STRING

Source§

impl MpvFormat for bool

Source§

const MPV_FORMAT: Format = Format::FLAG

Source§

impl MpvFormat for f64

Source§

const MPV_FORMAT: Format = Format::DOUBLE

Source§

impl MpvFormat for i64

Source§

const MPV_FORMAT: Format = Format::INT64

Source§

impl MpvFormat for String

Source§

const MPV_FORMAT: Format = Format::STRING

Implementors§

Source§

impl MpvFormat for Node

Source§

const MPV_FORMAT: Format = Format::NODE

Source§

impl MpvFormat for OsdString

Source§

const MPV_FORMAT: Format = Format::OSD_STRING

Source§

impl MpvFormat for ByteArray

Source§

const MPV_FORMAT: Format = Format::BYTE_ARRAY

Source§

impl MpvFormat for NodeArray

Source§

const MPV_FORMAT: Format = Format::NODE_ARRAY

Source§

impl MpvFormat for NodeMap

Source§

const MPV_FORMAT: Format = Format::NODE_MAP