[−][src]Enum rustc_lint::builtin::SymbolName

pub(in builtin) enum SymbolName {
    Link(Symbol, Span),
    Normal(Symbol),
}

Differentiate between whether the name for an extern decl came from the link_name attribute or just from declaration itself. This is important because we don't want to report clashes on symbol name if they don't actually clash because one or the other links against a symbol with a different name.

Variants

The name of the symbol + the span of the annotation which introduced the link name.

Normal(Symbol)

No link name, so just the name of the symbol.

Implementations

impl SymbolName[src]

pub(in builtin) fn get_name(
    &self
) -> Symbol
[src]

Auto Trait Implementations

impl RefUnwindSafe for SymbolName

impl !Send for SymbolName

impl !Sync for SymbolName

impl Unpin for SymbolName

impl UnwindSafe for SymbolName

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<T> From<T> for T[src]

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

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.