Skip to main content

Mapping

Trait Mapping 

Source
trait Mapping<S: Stage> {
    const MAPPING: (&'static [Symbol], AttributeTemplate, for<'sess> fn(&mut LintParser, &mut AcceptContext<'_, 'sess, S>, &ArgParser));
}

Required Associated Constants§

Source

const MAPPING: (&'static [Symbol], AttributeTemplate, for<'sess> fn(&mut LintParser, &mut AcceptContext<'_, 'sess, S>, &ArgParser))

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§

Source§

impl<S: Stage, T: Lint> Mapping<S> for T

Source§

const MAPPING: (&'static [Symbol], AttributeTemplate, for<'sess> fn(&mut LintParser, &mut AcceptContext<'_, 'sess, S>, &ArgParser))