gstreamer::format

Trait FormattedValue

Source
pub trait FormattedValue:
    Copy
    + Clone
    + Sized
    + Into<GenericFormattedValue>
    + 'static {
    type FullRange: FormattedValueFullRange + From<Self>;

    // Required methods
    fn default_format() -> Format;
    fn format(&self) -> Format;
    fn is_some(&self) -> bool;
    unsafe fn into_raw_value(self) -> i64;

    // Provided method
    fn is_none(&self) -> bool { ... }
}

Required Associated Types§

Source

type FullRange: FormattedValueFullRange + From<Self>

Type which allows building a FormattedValue of this format from any raw value.

Required Methods§

Source

fn default_format() -> Format

Source

fn format(&self) -> Format

Source

fn is_some(&self) -> bool

Returns true if this FormattedValue represents a defined value.

Source

unsafe fn into_raw_value(self) -> i64

Provided Methods§

Source

fn is_none(&self) -> bool

Returns true if this FormattedValue represents an undefined value.

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 FormattedValue for Option<Buffers>

Source§

impl FormattedValue for Option<Bytes>

Source§

impl FormattedValue for Option<ClockTime>

Source§

impl FormattedValue for Option<Default>

Source§

impl FormattedValue for Option<Percent>

Implementors§