pub enum Binding {
Decl(DeclId),
Typedef(TypeId),
Enumerator {
value: i128,
ty: TypeId,
},
}Expand description
What an ordinary identifier names.
The four things C’s ordinary namespace holds, which is objects, functions, typedef names and enumerators. The first two are the same case here because a use of either is a use of a declaration, and what separates them is the type it has.
Variants§
Decl(DeclId)
An object or a function, which is a declaration in the typed tree.
Typedef(TypeId)
A typedef name, which is a name for a type and never appears in the tree.
Enumerator
An enumerator, which is a constant and is folded into the expression that used it.
Trait Implementations§
impl Copy for Binding
impl Eq for Binding
impl StructuralPartialEq for Binding
Auto Trait Implementations§
impl Freeze for Binding
impl RefUnwindSafe for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin for Binding
impl UnsafeUnpin for Binding
impl UnwindSafe for Binding
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