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