pub enum Linkage {
None,
Internal,
External,
}Expand description
Whether a name is shared with other translation units, and how.
Variants§
None
The name is not shared. Block-scope objects without extern, parameters, and anything
declared in a function’s body except a function or an extern object.
Internal
The name is shared within the translation unit and not outside it, which is what
static at file scope means.
External
The name is shared with every translation unit that declares it.
Trait Implementations§
impl Copy for Linkage
impl Eq for Linkage
impl StructuralPartialEq for Linkage
Auto Trait Implementations§
impl Freeze for Linkage
impl RefUnwindSafe for Linkage
impl Send for Linkage
impl Sync for Linkage
impl Unpin for Linkage
impl UnsafeUnpin for Linkage
impl UnwindSafe for Linkage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more