Type Alias gstreamer::Segment

source ·
pub type Segment = FormattedSegment<GenericFormattedValue>;

Aliased Type§

struct Segment { /* private fields */ }

Implementations§

source§

impl Segment

source

pub fn reset_with_format(&mut self, format: Format)

source

pub fn set_format(&mut self, format: Format)

source

pub fn downcast<T: FormattedValueIntrinsic>( self, ) -> Result<FormattedSegment<T>, Self>

source

pub fn downcast_ref<T: FormattedValueIntrinsic>( &self, ) -> Option<&FormattedSegment<T>>

source

pub fn downcast_mut<T: FormattedValueIntrinsic>( &mut self, ) -> Option<&mut FormattedSegment<T>>

Trait Implementations§

source§

impl<'de> Deserialize<'de> for Segment

source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
source§

impl ValueType for Segment

§

type Type = FormattedSegment<GenericFormattedValue>

Type to get the Type from. Read more