Enum AstLinkage
pub enum AstLinkage {
None,
Internal,
External,
}Expand description
The linkage of an identifier determines the scope that it can be referenced from.
Variants§
Implementations§
§impl AstLinkage
impl AstLinkage
pub fn has_linkage(&self) -> bool
pub fn has_linkage(&self) -> bool
Does the identifier have linkage?
In other words, is the linkage Internal or External (but not None).
An identifier with linkage must be defined at file scope, but an identifier can be declared with external
linkage at any scope.
Trait Implementations§
§impl Clone for AstLinkage
impl Clone for AstLinkage
§fn clone(&self) -> AstLinkage
fn clone(&self) -> AstLinkage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for AstLinkage
impl Debug for AstLinkage
§impl Display for AstLinkage
impl Display for AstLinkage
§impl PartialEq for AstLinkage
impl PartialEq for AstLinkage
impl Copy for AstLinkage
impl Eq for AstLinkage
impl StructuralPartialEq for AstLinkage
Auto Trait Implementations§
impl Freeze for AstLinkage
impl RefUnwindSafe for AstLinkage
impl Send for AstLinkage
impl Sync for AstLinkage
impl Unpin for AstLinkage
impl UnwindSafe for AstLinkage
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