Skip to main content

Embedding

Trait Embedding 

Source
pub trait Embedding {
    const INIT: Self;

    // Required method
    fn init() -> impl Init<Self>;
}
Expand description

User data that can be embedded in the stack network

Required Associated Constants§

Source

const INIT: Self

Required Methods§

Source

fn init() -> impl Init<Self>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Embedding for ()

Source§

const INIT: Self = ()

Source§

fn init() -> impl Init<Self>

Implementors§