Struct rustc::lint::LintIdUnstable [-] [+] [src]

pub struct LintId {
    // some fields omitted
}

Identifies a lint known to the compiler.

Methods

impl LintId

fn of(lint: &'static Lint) -> LintId

Get the LintId for a Lint.

fn as_str(&self) -> String

Get the name of the lint.

Trait Implementations

impl PartialEq for LintId

fn eq(&self, other: &LintId) -> bool

fn ne(&self, other: &Rhs) -> bool

impl Eq for LintId

fn assert_receiver_is_total_eq(&self)

impl Hash for LintId

fn hash<H: Hasher>(&self, state: &mut H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

Derived Implementations

impl Copy for LintId

impl Clone for LintId

fn clone(&self) -> LintId

fn clone_from(&mut self, source: &Self)