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 GenericFormattedValuepub fn new(format: Format, value: i64) -> Self[src]
pub fn new(format: Format, value: i64) -> Selfpub fn from_undefined(v: i64) -> Self[src]
pub fn from_undefined(v: i64) -> Selfpub fn from_default<V: Into<Default>>(v: V) -> Self[src]
pub fn from_default<V: Into<Default>>(v: V) -> Selfpub fn from_bytes<V: Into<Bytes>>(v: V) -> Self[src]
pub fn from_bytes<V: Into<Bytes>>(v: V) -> Selfpub fn from_time<V: Into<ClockTime>>(v: V) -> Self[src]
pub fn from_time<V: Into<ClockTime>>(v: V) -> Selfpub fn from_buffers<V: Into<Buffers>>(v: V) -> Self[src]
pub fn from_buffers<V: Into<Buffers>>(v: V) -> Selfpub fn from_percent<V: Into<Option<u32>>>(v: V) -> Self[src]
pub fn from_percent<V: Into<Option<u32>>>(v: V) -> Selfpub fn from_other(format: Format, v: i64) -> Self[src]
pub fn from_other(format: Format, v: i64) -> Selfpub fn get_format(&self) -> Format[src]
pub fn get_format(&self) -> Formatpub fn get_value(&self) -> i64[src]
pub fn get_value(&self) -> i64pub 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 GenericFormattedValuefn eq(&self, other: &GenericFormattedValue) -> bool[src]
fn eq(&self, other: &GenericFormattedValue) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for GenericFormattedValue[src]
impl Eq for GenericFormattedValueimpl Hash for GenericFormattedValue[src]
impl Hash for GenericFormattedValuefn 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 GenericFormattedValuefn clone(&self) -> GenericFormattedValue[src]
fn clone(&self) -> GenericFormattedValueReturns 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 GenericFormattedValueimpl Debug for GenericFormattedValue[src]
impl Debug for GenericFormattedValuefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl FormattedValue for GenericFormattedValue[src]
impl FormattedValue for GenericFormattedValuefn get_default_format() -> Format[src]
fn get_default_format() -> Formatfn try_from(v: GenericFormattedValue) -> Option<Self>[src]
fn try_from(v: GenericFormattedValue) -> Option<Self>fn get_format(&self) -> Format[src]
fn get_format(&self) -> Formatunsafe fn from_raw(format: Format, value: i64) -> Self[src]
unsafe fn from_raw(format: Format, value: i64) -> Selfunsafe fn to_raw_value(&self) -> i64[src]
unsafe fn to_raw_value(&self) -> i64impl From<Default> for GenericFormattedValue[src]
impl From<Default> for GenericFormattedValuefn from(v: Default) -> GenericFormattedValue[src]
fn from(v: Default) -> GenericFormattedValuePerforms the conversion.
impl From<Bytes> for GenericFormattedValue[src]
impl From<Bytes> for GenericFormattedValuefn from(v: Bytes) -> GenericFormattedValue[src]
fn from(v: Bytes) -> GenericFormattedValuePerforms the conversion.
impl From<ClockTime> for GenericFormattedValue[src]
impl From<ClockTime> for GenericFormattedValuefn from(v: ClockTime) -> GenericFormattedValue[src]
fn from(v: ClockTime) -> GenericFormattedValuePerforms the conversion.
impl From<Buffers> for GenericFormattedValue[src]
impl From<Buffers> for GenericFormattedValuefn from(v: Buffers) -> GenericFormattedValue[src]
fn from(v: Buffers) -> GenericFormattedValuePerforms the conversion.
Auto Trait Implementations
impl Send for GenericFormattedValue
impl Send for GenericFormattedValueimpl Sync for GenericFormattedValue
impl Sync for GenericFormattedValue