freya_core::parsing

Trait ParseAttribute

Source
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§

Source

fn parse_attribute( &mut self, attr: OwnedAttributeView<'_, CustomAttributeValues>, ) -> Result<(), ParseError>

Provided Methods§

Source

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.

Implementors§