pub trait CanHaveAttributes: Sized {
// Required method
fn with_attributes<Attr>(self, attr: Attr) -> WithAttributes<Attr, Self>;
}Expand description
A writable that can have attributes attached to it
Required Methods§
Sourcefn with_attributes<Attr>(self, attr: Attr) -> WithAttributes<Attr, Self>
fn with_attributes<Attr>(self, attr: Attr) -> WithAttributes<Attr, Self>
Adds attributes to this writable
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".