pub trait Attributes: Sized + 'static {
// Required method
fn render(self, r: &mut ElementRenderer) -> Result<(), Error>;
// Provided methods
fn get<T: 'static>(&self) -> Option<&T> { ... }
fn get_mut<T: 'static>(&mut self) -> Option<&mut T> { ... }
fn with<A: Attributes>(self, attr: A) -> Pair<A, Self> { ... }
}Required Methods§
Provided Methods§
fn get<T: 'static>(&self) -> Option<&T>
fn get_mut<T: 'static>(&mut self) -> Option<&mut T>
fn with<A: Attributes>(self, attr: A) -> Pair<A, Self>
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.