Skip to main content

ContainsMap

Trait ContainsMap 

Source
pub trait ContainsMap {
    // Required method
    fn get_map(&self) -> &Map<dyn CloneAny + Send>;
}
Expand description

A state that exposes an anymap by shared reference.

Data is taken out by cloning (CloneAny), so it is only suitable for small, read-only values such as configuration.

Required Methods§

Source

fn get_map(&self) -> &Map<dyn CloneAny + Send>

Get the anymap by shared reference.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<S: ContainsMap> ContainsMap for ManuallyDrop<S>

Source§

fn get_map(&self) -> &Map<dyn CloneAny + Send>

Implementors§