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§
Provided Methods§
fn name(&self) -> String
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.