Skip to main content

MetaTransform

Trait MetaTransform 

Source
pub unsafe trait MetaTransform {
    type GLibType;

    // Required methods
    fn quark() -> Quark;
    fn as_ptr(&self) -> *const Self::GLibType;
}
Expand description

A kind of meta transform, e.g. MetaTransformCopy or VideoMetaTransformScale.

§Safety

Self must be #[repr(transparent)] over Self::GLibType, and quark() must return the quark GStreamer uses to identify a transform whose accompanying data is a Self::GLibType. MetaTransformRef::get relies on both to hand out a &Self for a matching quark.

Required Associated Types§

Required Methods§

Source

fn quark() -> Quark

Source

fn as_ptr(&self) -> *const Self::GLibType

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§