pub trait ParseAttribute: Sized {
// Required method
fn parse_attribute(
&mut self,
attr: OwnedAttributeView<'_, CustomAttributeValues>,
) -> Result<(), ParseError>;
// Provided method
fn parse_safe(
&mut self,
attr: OwnedAttributeView<'_, CustomAttributeValues>,
) { ... }
}
Required Methods§
fn parse_attribute( &mut self, attr: OwnedAttributeView<'_, CustomAttributeValues>, ) -> Result<(), ParseError>
Provided Methods§
fn parse_safe(&mut self, attr: OwnedAttributeView<'_, CustomAttributeValues>)
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.