Skip to main content

CoreProxy

Trait CoreProxy 

Source
pub trait CoreProxy {
    type Core: BufferKindUser;

    // Required methods
    fn compose(core: Self::Core, buffer: Buffer<Self::Core>) -> Self;
    fn decompose(self) -> (Self::Core, Buffer<Self::Core>);
}
Expand description

A proxy trait to the core block-level type.

Required Associated Types§

Source

type Core: BufferKindUser

Core block-level type.

Required Methods§

Source

fn compose(core: Self::Core, buffer: Buffer<Self::Core>) -> Self

Create Self from core and buffer.

Source

fn decompose(self) -> (Self::Core, Buffer<Self::Core>)

Decompose self into core and buffer.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§