skia_safe

Trait Flattenable

Source
pub trait Flattenable: Sized {
    // Required methods
    fn type_name(&self) -> &CStr;
    fn serialize(&self) -> Data;
    fn deserialize(data: &[u8]) -> Option<Self>;
}

Required Methods§

Source

fn type_name(&self) -> &CStr

Source

fn serialize(&self) -> Data

Source

fn deserialize(data: &[u8]) -> Option<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§

Source§

impl<N> Flattenable for RCHandle<N>
where N: NativeFlattenable + NativeRefCountedBase,