Struct rustc_trans::lint::LintId
[−]
[src]
pub struct LintId { /* fields omitted */ }🔬 This is a nightly-only experimental API. (
rustc_private)Identifies a lint known to the compiler.
Methods
impl LintId[src]
fn of(lint: &'static Lint) -> LintId
🔬 This is a nightly-only experimental API. (
rustc_private)Get the LintId for a Lint.
fn to_string(&self) -> String
🔬 This is a nightly-only experimental API. (
rustc_private)Get the name of the lint.
Trait Implementations
impl Decodable for LintId[src]
fn decode<D>(d: &mut D) -> Result<LintId, D::Error> where D: Decoder
🔬 This is a nightly-only experimental API. (
rustc_private)impl PartialEq<LintId> 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) -> bool1.0.0
This method tests for !=.
impl Hash for LintId[src]
fn hash<H>(&self, state: &mut H) where H: Hasher
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
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
impl Eq for LintId[src]
impl Debug for LintId[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Encodable for LintId[src]
fn encode<S>(&self, s: &mut S) -> Result<(), S::Error> where S: Encoder
🔬 This is a nightly-only experimental API. (
rustc_private)