Enum gstreamer::format::GenericFormattedValue[][src]

pub enum GenericFormattedValue {
    Undefined(Undefined),
    Default(Default),
    Bytes(Bytes),
    Time(ClockTime),
    Buffers(Buffers),
    Percent(Percent),
    Other(Formati64),
}

Variants

Undefined(Undefined)
Default(Default)
Bytes(Bytes)
Time(ClockTime)
Buffers(Buffers)
Percent(Percent)
Other(Formati64)

Implementations

impl GenericFormattedValue[src]

pub fn new(format: Format, value: i64) -> Self[src]

pub fn format(&self) -> Format[src]

pub fn value(&self) -> i64[src]

Trait Implementations

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 Debug for GenericFormattedValue[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for GenericFormattedValue[src]

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
    __D: Deserializer<'de>, 
[src]

Deserialize this value from the given Serde deserializer. Read more

impl FormattedValue for GenericFormattedValue[src]

fn default_format() -> Format[src]

fn format(&self) -> Format[src]

unsafe fn from_raw(format: Format, value: i64) -> Self[src]

unsafe fn to_raw_value(&self) -> i64[src]

impl From<Buffers> for GenericFormattedValue[src]

fn from(v: Buffers) -> Self[src]

Performs the conversion.

impl From<Bytes> for GenericFormattedValue[src]

fn from(v: Bytes) -> Self[src]

Performs the conversion.

impl From<ClockTime> for GenericFormattedValue[src]

fn from(v: ClockTime) -> Self[src]

Performs the conversion.

impl From<Default> for GenericFormattedValue[src]

fn from(v: Default) -> Self[src]

Performs the conversion.

impl From<Percent> for GenericFormattedValue[src]

fn from(v: Percent) -> Self[src]

Performs the conversion.

impl From<Undefined> for GenericFormattedValue[src]

fn from(v: Undefined) -> Self[src]

Performs the conversion.

impl Hash for GenericFormattedValue[src]

fn hash<__H: Hasher>(&self, state: &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]

Feeds a slice of this type into the given Hasher. Read more

impl PartialEq<GenericFormattedValue> for GenericFormattedValue[src]

fn eq(&self, other: &GenericFormattedValue) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &GenericFormattedValue) -> bool[src]

This method tests for !=.

impl Serialize for GenericFormattedValue[src]

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
    __S: Serializer
[src]

Serialize this value into the given Serde serializer. Read more

impl TryFrom<GenericFormattedValue> for Default[src]

type Error = TryFromGenericFormattedValueError

The type returned in the event of a conversion error.

fn try_from(v: GenericFormattedValue) -> Result<Default, Self::Error>[src]

Performs the conversion.

impl TryFrom<GenericFormattedValue> for Bytes[src]

type Error = TryFromGenericFormattedValueError

The type returned in the event of a conversion error.

fn try_from(v: GenericFormattedValue) -> Result<Bytes, Self::Error>[src]

Performs the conversion.

impl TryFrom<GenericFormattedValue> for ClockTime[src]

type Error = TryFromGenericFormattedValueError

The type returned in the event of a conversion error.

fn try_from(v: GenericFormattedValue) -> Result<ClockTime, Self::Error>[src]

Performs the conversion.

impl TryFrom<GenericFormattedValue> for Buffers[src]

type Error = TryFromGenericFormattedValueError

The type returned in the event of a conversion error.

fn try_from(v: GenericFormattedValue) -> Result<Buffers, Self::Error>[src]

Performs the conversion.

impl TryFrom<GenericFormattedValue> for Undefined[src]

type Error = TryFromGenericFormattedValueError

The type returned in the event of a conversion error.

fn try_from(
    v: GenericFormattedValue
) -> Result<Undefined, TryFromGenericFormattedValueError>
[src]

Performs the conversion.

impl TryFrom<GenericFormattedValue> for Percent[src]

type Error = TryFromGenericFormattedValueError

The type returned in the event of a conversion error.

fn try_from(
    v: GenericFormattedValue
) -> Result<Percent, TryFromGenericFormattedValueError>
[src]

Performs the conversion.

impl Copy for GenericFormattedValue[src]

impl Eq for GenericFormattedValue[src]

impl StructuralEq for GenericFormattedValue[src]

impl StructuralPartialEq for GenericFormattedValue[src]

Auto Trait Implementations

impl RefUnwindSafe for GenericFormattedValue

impl Send for GenericFormattedValue

impl Sync for GenericFormattedValue

impl Unpin for GenericFormattedValue

impl UnwindSafe for GenericFormattedValue

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]