Enum gstreamer::format::GenericFormattedValue [−][src]
pub enum GenericFormattedValue { Undefined(i64), Default(Default), Bytes(Bytes), Time(ClockTime), Buffers(Buffers), Percent(Option<u32>), Other(Format, i64), }
Variants
Undefined(i64)
Default(Default)
Bytes(Bytes)
Time(ClockTime)
Buffers(Buffers)
Percent(Option<u32>)
Other(Format, i64)
Methods
impl GenericFormattedValue
[src]
impl GenericFormattedValue
pub fn new(format: Format, value: i64) -> Self
[src]
pub fn new(format: Format, value: i64) -> Self
pub fn from_undefined(v: i64) -> Self
[src]
pub fn from_undefined(v: i64) -> Self
pub fn from_default<V: Into<Default>>(v: V) -> Self
[src]
pub fn from_default<V: Into<Default>>(v: V) -> Self
pub fn from_bytes<V: Into<Bytes>>(v: V) -> Self
[src]
pub fn from_bytes<V: Into<Bytes>>(v: V) -> Self
pub fn from_time<V: Into<ClockTime>>(v: V) -> Self
[src]
pub fn from_time<V: Into<ClockTime>>(v: V) -> Self
pub fn from_buffers<V: Into<Buffers>>(v: V) -> Self
[src]
pub fn from_buffers<V: Into<Buffers>>(v: V) -> Self
pub fn from_percent<V: Into<Option<u32>>>(v: V) -> Self
[src]
pub fn from_percent<V: Into<Option<u32>>>(v: V) -> Self
pub fn from_other(format: Format, v: i64) -> Self
[src]
pub fn from_other(format: Format, v: i64) -> Self
pub fn get_format(&self) -> Format
[src]
pub fn get_format(&self) -> Format
pub fn get_value(&self) -> i64
[src]
pub fn get_value(&self) -> i64
pub fn try_into<F: FormattedValue>(self) -> Result<F, Self>
[src]
pub fn try_into<F: FormattedValue>(self) -> Result<F, Self>
pub fn try_into_undefined(self) -> Result<i64, Self>
[src]
pub fn try_into_undefined(self) -> Result<i64, Self>
pub fn try_into_default(self) -> Result<Default, Self>
[src]
pub fn try_into_default(self) -> Result<Default, Self>
pub fn try_into_bytes(self) -> Result<Bytes, Self>
[src]
pub fn try_into_bytes(self) -> Result<Bytes, Self>
pub fn try_into_time(self) -> Result<ClockTime, Self>
[src]
pub fn try_into_time(self) -> Result<ClockTime, Self>
pub fn try_into_buffers(self) -> Result<Buffers, Self>
[src]
pub fn try_into_buffers(self) -> Result<Buffers, Self>
pub fn try_into_percent(self) -> Result<Option<u32>, Self>
[src]
pub fn try_into_percent(self) -> Result<Option<u32>, Self>
pub fn try_into_other(self) -> Result<(Format, i64), Self>
[src]
pub fn try_into_other(self) -> Result<(Format, i64), Self>
Trait Implementations
impl PartialEq for GenericFormattedValue
[src]
impl PartialEq for GenericFormattedValue
fn eq(&self, other: &GenericFormattedValue) -> bool
[src]
fn eq(&self, other: &GenericFormattedValue) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &GenericFormattedValue) -> bool
[src]
fn ne(&self, other: &GenericFormattedValue) -> bool
This method tests for !=
.
impl Eq for GenericFormattedValue
[src]
impl Eq for GenericFormattedValue
impl Hash for GenericFormattedValue
[src]
impl Hash for GenericFormattedValue
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for GenericFormattedValue
[src]
impl Clone for GenericFormattedValue
fn clone(&self) -> GenericFormattedValue
[src]
fn clone(&self) -> GenericFormattedValue
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for GenericFormattedValue
[src]
impl Copy for GenericFormattedValue
impl Debug for GenericFormattedValue
[src]
impl Debug for GenericFormattedValue
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl FormattedValue for GenericFormattedValue
[src]
impl FormattedValue for GenericFormattedValue
fn get_default_format() -> Format
[src]
fn get_default_format() -> Format
fn try_from(v: GenericFormattedValue) -> Option<Self>
[src]
fn try_from(v: GenericFormattedValue) -> Option<Self>
fn get_format(&self) -> Format
[src]
fn get_format(&self) -> Format
unsafe fn from_raw(format: Format, value: i64) -> Self
[src]
unsafe fn from_raw(format: Format, value: i64) -> Self
unsafe fn to_raw_value(&self) -> i64
[src]
unsafe fn to_raw_value(&self) -> i64
impl From<Default> for GenericFormattedValue
[src]
impl From<Default> for GenericFormattedValue
fn from(v: Default) -> GenericFormattedValue
[src]
fn from(v: Default) -> GenericFormattedValue
Performs the conversion.
impl From<Bytes> for GenericFormattedValue
[src]
impl From<Bytes> for GenericFormattedValue
fn from(v: Bytes) -> GenericFormattedValue
[src]
fn from(v: Bytes) -> GenericFormattedValue
Performs the conversion.
impl From<ClockTime> for GenericFormattedValue
[src]
impl From<ClockTime> for GenericFormattedValue
fn from(v: ClockTime) -> GenericFormattedValue
[src]
fn from(v: ClockTime) -> GenericFormattedValue
Performs the conversion.
impl From<Buffers> for GenericFormattedValue
[src]
impl From<Buffers> for GenericFormattedValue
fn from(v: Buffers) -> GenericFormattedValue
[src]
fn from(v: Buffers) -> GenericFormattedValue
Performs the conversion.
Auto Trait Implementations
impl Send for GenericFormattedValue
impl Send for GenericFormattedValue
impl Sync for GenericFormattedValue
impl Sync for GenericFormattedValue