Trait ObjectType

Source
pub unsafe trait ObjectType {
    // Required methods
    unsafe fn from_raw_full(ptr: *const Babl) -> Self;
    unsafe fn inner(&self) -> *const Babl;

    // Provided methods
    fn name(&self) -> String { ... }
    fn introspect(&self) { ... }
}
Expand description

§Safety

The trait is only meant to be implemented internally by Babl types

Required Methods§

Source

unsafe fn from_raw_full(ptr: *const Babl) -> Self

Source

unsafe fn inner(&self) -> *const Babl

Provided Methods§

Source

fn name(&self) -> String

Source

fn introspect(&self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§