Trait fyrox_core::pool::PayloadContainer
source · pub trait PayloadContainer: Sized {
type Element: Sized;
fn new_empty() -> Self;
fn new(element: Self::Element) -> Self;
fn is_some(&self) -> bool;
fn as_ref(&self) -> Option<&Self::Element>;
fn as_mut(&mut self) -> Option<&mut Self::Element>;
fn replace(&mut self, element: Self::Element) -> Option<Self::Element>;
fn take(&mut self) -> Option<Self::Element>;
}