#[non_exhaustive]pub enum NameContext {
Class,
Function,
Const,
}Expand description
Which import table a name is looked up in.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for NameContext
impl Clone for NameContext
impl Copy for NameContext
Source§impl Debug for NameContext
impl Debug for NameContext
impl Eq for NameContext
Source§impl PartialEq for NameContext
impl PartialEq for NameContext
impl StructuralPartialEq for NameContext
Auto Trait Implementations§
impl Freeze for NameContext
impl RefUnwindSafe for NameContext
impl Send for NameContext
impl Sync for NameContext
impl Unpin for NameContext
impl UnsafeUnpin for NameContext
impl UnwindSafe for NameContext
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