Enum gstreamer::GenericFormattedValue
source · pub enum GenericFormattedValue {
Undefined(Undefined),
Default(Option<Default>),
Bytes(Option<Bytes>),
Time(Option<ClockTime>),
Buffers(Option<Buffers>),
Percent(Option<Percent>),
Other(Format, Option<Other>),
}
Variants§
Undefined(Undefined)
Default(Option<Default>)
Bytes(Option<Bytes>)
Time(Option<ClockTime>)
Buffers(Option<Buffers>)
Percent(Option<Percent>)
Other(Format, Option<Other>)
Implementations§
Trait Implementations§
source§impl Clone for GenericFormattedValue
impl Clone for GenericFormattedValue
source§fn clone(&self) -> GenericFormattedValue
fn clone(&self) -> GenericFormattedValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl CompatibleFormattedValue<GenericFormattedValue> for GenericFormattedValue
impl CompatibleFormattedValue<GenericFormattedValue> for GenericFormattedValue
type Original = GenericFormattedValue
source§fn try_into_checked(
self,
other: GenericFormattedValue
) -> Result<Self, FormattedValueError>
fn try_into_checked( self, other: GenericFormattedValue ) -> Result<Self, FormattedValueError>
source§fn try_into_checked_explicit(
self,
format: Format
) -> Result<Self::Original, FormattedValueError>
fn try_into_checked_explicit( self, format: Format ) -> Result<Self::Original, FormattedValueError>
source§impl<T: SpecificFormattedValue> CompatibleFormattedValue<GenericFormattedValue> for T
impl<T: SpecificFormattedValue> CompatibleFormattedValue<GenericFormattedValue> for T
type Original = T
source§fn try_into_checked(
self,
other: GenericFormattedValue
) -> Result<Self, FormattedValueError>
fn try_into_checked( self, other: GenericFormattedValue ) -> Result<Self, FormattedValueError>
source§fn try_into_checked_explicit(
self,
format: Format
) -> Result<Self::Original, FormattedValueError>
fn try_into_checked_explicit( self, format: Format ) -> Result<Self::Original, FormattedValueError>
source§impl<V: SpecificFormattedValue> CompatibleFormattedValue<V> for GenericFormattedValue
impl<V: SpecificFormattedValue> CompatibleFormattedValue<V> for GenericFormattedValue
type Original = GenericFormattedValue
source§fn try_into_checked(self, _other: V) -> Result<Self, FormattedValueError>
fn try_into_checked(self, _other: V) -> Result<Self, FormattedValueError>
source§fn try_into_checked_explicit(
self,
_format: Format
) -> Result<Self::Original, FormattedValueError>
fn try_into_checked_explicit( self, _format: Format ) -> Result<Self::Original, FormattedValueError>
source§impl Debug for GenericFormattedValue
impl Debug for GenericFormattedValue
source§impl<'de> Deserialize<'de> for GenericFormattedValue
impl<'de> Deserialize<'de> for GenericFormattedValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for GenericFormattedValue
impl Display for GenericFormattedValue
source§impl Displayable for GenericFormattedValue
impl Displayable for GenericFormattedValue
type DisplayImpl = GenericFormattedValue
fn display(self) -> Self
source§impl FormattedValue for GenericFormattedValue
impl FormattedValue for GenericFormattedValue
§type FullRange = GenericFormattedValue
type FullRange = GenericFormattedValue
Type which allows building a
FormattedValue
of this format from any raw value.fn default_format() -> Format
fn format(&self) -> Format
unsafe fn into_raw_value(self) -> i64
source§impl From<Buffers> for GenericFormattedValue
impl From<Buffers> for GenericFormattedValue
source§impl From<Bytes> for GenericFormattedValue
impl From<Bytes> for GenericFormattedValue
source§impl From<ClockTime> for GenericFormattedValue
impl From<ClockTime> for GenericFormattedValue
source§impl From<Default> for GenericFormattedValue
impl From<Default> for GenericFormattedValue
source§impl From<Percent> for GenericFormattedValue
impl From<Percent> for GenericFormattedValue
source§impl From<Undefined> for GenericFormattedValue
impl From<Undefined> for GenericFormattedValue
source§impl Hash for GenericFormattedValue
impl Hash for GenericFormattedValue
source§impl PartialEq<GenericFormattedValue> for GenericFormattedValue
impl PartialEq<GenericFormattedValue> for GenericFormattedValue
source§fn eq(&self, other: &GenericFormattedValue) -> bool
fn eq(&self, other: &GenericFormattedValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GenericFormattedValue
impl Serialize for GenericFormattedValue
source§impl TryFrom<GenericFormattedValue> for Option<Buffers>
impl TryFrom<GenericFormattedValue> for Option<Buffers>
§type Error = FormattedValueError
type Error = FormattedValueError
The type returned in the event of a conversion error.
source§impl TryFrom<GenericFormattedValue> for Option<Bytes>
impl TryFrom<GenericFormattedValue> for Option<Bytes>
§type Error = FormattedValueError
type Error = FormattedValueError
The type returned in the event of a conversion error.
source§impl TryFrom<GenericFormattedValue> for Option<ClockTime>
impl TryFrom<GenericFormattedValue> for Option<ClockTime>
§type Error = FormattedValueError
type Error = FormattedValueError
The type returned in the event of a conversion error.
source§impl TryFrom<GenericFormattedValue> for Option<Default>
impl TryFrom<GenericFormattedValue> for Option<Default>
§type Error = FormattedValueError
type Error = FormattedValueError
The type returned in the event of a conversion error.
source§impl TryFrom<GenericFormattedValue> for Undefined
impl TryFrom<GenericFormattedValue> for Undefined
§type Error = FormattedValueError
type Error = FormattedValueError
The type returned in the event of a conversion error.
source§impl UnsignedIntoSigned for GenericFormattedValue
impl UnsignedIntoSigned for GenericFormattedValue
type Signed = GenericSignedFormattedValue
source§fn into_positive(self) -> Self::Signed
fn into_positive(self) -> Self::Signed
Converts
self
into a Signed::Positive
.source§fn into_negative(self) -> Self::Signed
fn into_negative(self) -> Self::Signed
Converts
self
into a Signed::Negative
.source§fn into_signed(self, sign: i32) -> Self::Signed
fn into_signed(self, sign: i32) -> Self::Signed
Converts
self
into a Signed
matching the given sign
.