pub trait Decorate {
// Required methods
fn decor(&self) -> &Decor;
fn decor_mut(&mut self) -> &mut Decor;
// Provided methods
fn decorate(&mut self, decor: impl Into<Decor>) { ... }
fn decorated(self, decor: impl Into<Decor>) -> Self
where Self: Sized { ... }
}
Expand description
A trait for objects which can be decorated with whitespace and comments.
Required Methods§
Provided Methods§
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.