Skip to main content

Place

Trait Place 

Source
pub trait Place<T>: AsRef<[Element<T>]> { }
Expand description

The custom storage place of Elements in the slot.

This trait should not be directly implemented; users should implement AsRef to [Element<T>] instead. We don’t make this trait an alias of core::ops::Deref because arrays don’t implement this trait.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T, P> Place<T> for P
where P: AsRef<[Element<T>]>,