Trait AttributeListExt

Source
pub(crate) trait AttributeListExt {
    // Required methods
    fn report_unused(&self, on: &str) -> Result<()>;
    fn lower(
        &self,
        handler: &mut impl FnMut(&Loc<Attribute>) -> Result<()>,
    ) -> Result<()>;
}

Required Methods§

Source

fn report_unused(&self, on: &str) -> Result<()>

Source

fn lower( &self, handler: &mut impl FnMut(&Loc<Attribute>) -> Result<()>, ) -> Result<()>

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.

Implementations on Foreign Types§

Source§

impl AttributeListExt for AttributeList

Source§

fn report_unused(&self, on: &str) -> Result<()>

Source§

fn lower( &self, handler: &mut impl FnMut(&Loc<Attribute>) -> Result<()>, ) -> Result<()>

Implementors§