pub trait Attribute: Sized {
// Required methods
fn into_attr(self) -> AttributeValue;
fn from_attr(attr: AttributeValue) -> Result<Self, AttributeError>;
}
Required Methods§
fn into_attr(self) -> AttributeValue
fn from_attr(attr: AttributeValue) -> Result<Self, AttributeError>
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.