Type Alias gstreamer::segment::Segment

source ·
pub type Segment = FormattedSegment<GenericFormattedValue>;

Aliased Type§

struct Segment {
    pub(crate) inner: GstSegment,
    pub(crate) phantom: PhantomData<GenericFormattedValue>,
}

Fields§

§inner: GstSegment§phantom: PhantomData<GenericFormattedValue>

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§