pub enum DeclKind {
Object,
Function,
}Expand description
Whether a declaration declares an object or a function.
A typedef and an enumerator are neither: one is a name for a type and the other is a
constant, and both have been resolved by the time anything reads this.
Variants§
Object
An object, which includes parameters, block-scope variables and compound literals.
Function
A function.
Trait Implementations§
impl Copy for DeclKind
impl Eq for DeclKind
impl StructuralPartialEq for DeclKind
Auto Trait Implementations§
impl Freeze for DeclKind
impl RefUnwindSafe for DeclKind
impl Send for DeclKind
impl Sync for DeclKind
impl Unpin for DeclKind
impl UnsafeUnpin for DeclKind
impl UnwindSafe for DeclKind
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