[][src]Struct rustc_ap_rustc_session::lint::LintId

pub struct LintId {
    pub lint: &'static Lint,
}

Identifies a lint known to the compiler.

Fields

lint: &'static Lint

Implementations

impl LintId[src]

pub fn of(lint: &'static Lint) -> LintId[src]

Gets the LintId for a Lint.

pub fn lint_name_raw(&self) -> &'static str[src]

pub fn to_string(&self) -> String[src]

Gets the name of the lint.

Trait Implementations

impl Clone for LintId[src]

impl Copy for LintId[src]

impl Debug for LintId[src]

impl Eq for LintId[src]

impl Hash for LintId[src]

impl<HCX> HashStable<HCX> for LintId[src]

impl PartialEq<LintId> for LintId[src]

impl<HCX> ToStableHashKey<HCX> for LintId[src]

type KeyType = &'static str

Auto Trait Implementations

impl RefUnwindSafe for LintId

impl Send for LintId

impl Sync for LintId

impl Unpin for LintId

impl UnwindSafe for LintId

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeResult<T> for T[src]

type Error = !

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,