Skip to main content
This is unreleased documentation for the main (development) branch of crypto-glue.

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", so this trait is not object safe.

Implementors§