pub trait TypeDescriptionContainer {
// Required methods
fn new() -> Self;
fn contains_type(&self, type_name: &str) -> bool;
fn insert(
&mut self,
type_names: TypeNames,
type_description: TypeDescription,
);
fn insert_all(&mut self, other: &Self);
// Provided method
fn reserve_type_name(&mut self, type_names: TypeNames) { ... }
}
Required Methods§
fn new() -> Self
fn contains_type(&self, type_name: &str) -> bool
fn insert(&mut self, type_names: TypeNames, type_description: TypeDescription)
fn insert_all(&mut self, other: &Self)
Provided Methods§
fn reserve_type_name(&mut self, type_names: TypeNames)
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.