Skip to main content

FromContainer

Trait FromContainer 

Source
pub trait FromContainer: Sized {
    // Required method
    fn from_container(container: &Container) -> Self;
}
Expand description

Trait for types that can be resolved from a Container reference.

Required Methods§

Source

fn from_container(container: &Container) -> 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§