Enum gstreamer::format::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<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 for GenericFormattedValue
impl PartialEq 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
.impl Copy for GenericFormattedValue
impl Eq for GenericFormattedValue
impl FormattedValueIntrinsic for GenericFormattedValue
impl SignedIntrinsic for GenericFormattedValue
impl StructuralPartialEq for GenericFormattedValue
Auto Trait Implementations§
impl Freeze for GenericFormattedValue
impl RefUnwindSafe for GenericFormattedValue
impl Send for GenericFormattedValue
impl Sync for GenericFormattedValue
impl Unpin for GenericFormattedValue
impl UnwindSafe for GenericFormattedValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CompatibleFormattedValue<GenericFormattedValue> for Twhere
T: SpecificFormattedValue,
impl<T> CompatibleFormattedValue<GenericFormattedValue> for Twhere
T: SpecificFormattedValue,
type Original = T
source§fn try_into_checked(
self,
other: GenericFormattedValue,
) -> Result<T, FormattedValueError>
fn try_into_checked( self, other: GenericFormattedValue, ) -> Result<T, FormattedValueError>
source§fn try_into_checked_explicit(
self,
format: Format,
) -> Result<<T as CompatibleFormattedValue<GenericFormattedValue>>::Original, FormattedValueError>
fn try_into_checked_explicit( self, format: Format, ) -> Result<<T as CompatibleFormattedValue<GenericFormattedValue>>::Original, FormattedValueError>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> NoneSignedBuilder for Twhere
T: UnsignedIntoSigned + FormattedValueNoneBuilder,
impl<T> NoneSignedBuilder for Twhere
T: UnsignedIntoSigned + FormattedValueNoneBuilder,
type Signed = <T as UnsignedIntoSigned>::Signed
source§fn none_signed() -> <T as NoneSignedBuilder>::Signed
fn none_signed() -> <T as NoneSignedBuilder>::Signed
Returns the
None
value for Self
as a Signed<FullRange>
if such a value can be represented. Read moresource§fn none_signed_for_format(format: Format) -> <T as NoneSignedBuilder>::Signed
fn none_signed_for_format(format: Format) -> <T as NoneSignedBuilder>::Signed
Returns the
None
value for Self
as a Signed<FullRange>
, if such a value can be represented. Read more