Enum rustc_lint::builtin::SymbolName
source · [−]Expand description
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
Link(Symbol, Span)
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
sourceimpl SymbolName
impl SymbolName
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 12 bytes
Size for each variant:
Link
: 12 bytesNormal
: 8 bytes