pub enum UsageRole {
Receiver,
Argument,
MemberWrite,
}Expand description
How a node participates in a usage event tracked by SyntaxGraph::usage_index.
Variants§
Receiver
The symbol is the receiver of a method call.
Argument
The symbol is passed as a call argument.
MemberWrite
The symbol is a member being written to.
Trait Implementations§
impl Copy for UsageRole
impl Eq for UsageRole
impl StructuralPartialEq for UsageRole
Auto Trait Implementations§
impl Forget for UsageRole
impl Freeze for UsageRole
impl RefUnwindSafe for UsageRole
impl Send for UsageRole
impl Sync for UsageRole
impl Unpin for UsageRole
impl UnsafeUnpin for UsageRole
impl UnwindSafe for UsageRole
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