Struct rustc::lint::LintId
[−]
[src]
pub struct LintId { // some fields omitted }
Unstable (
rustc_private
)Identifies a lint known to the compiler.
Methods
impl LintId
[src]
fn of(lint: &'static Lint) -> LintId
Unstable (
rustc_private
)Get the LintId
for a Lint
.
fn as_str(&self) -> String
Unstable (
rustc_private
)Get the name of the lint.
Trait Implementations
impl PartialEq for LintId
[src]
fn eq(&self, other: &LintId) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for LintId
[src]
impl Hash for LintId
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
Derived Implementations
impl Debug for LintId
[src]
impl Copy for LintId
[src]
impl Clone for LintId
[src]
fn clone(&self) -> LintId
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more