pub trait Element: Copy {
// Required methods
fn default_color(color: Color) -> Self;
fn strlen(self) -> usize;
fn append_to_string(self, string: &mut String);
}
Required Methods§
fn default_color(color: Color) -> Self
fn strlen(self) -> usize
fn append_to_string(self, string: &mut String)
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.