#[non_exhaustive]pub struct UsageEvent {
pub node_id: NodeId,
pub role: UsageRole,
pub arg_index: Option<i64>,
pub subpath: Option<NodeId>,
}Expand description
A recorded use of a symbol, tracked for data-flow analysis.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.node_id: NodeIdId of the node where the symbol is used.
role: UsageRoleHow the symbol participates at that node.
arg_index: Option<i64>The argument’s position, for UsageRole::Argument.
subpath: Option<NodeId>Id of the object path used, when only part of a value is affected.
Trait Implementations§
Source§impl Clone for UsageEvent
impl Clone for UsageEvent
Source§impl Debug for UsageEvent
impl Debug for UsageEvent
impl Eq for UsageEvent
Source§impl PartialEq for UsageEvent
impl PartialEq for UsageEvent
impl StructuralPartialEq for UsageEvent
Auto Trait Implementations§
impl Forget for UsageEvent
impl Freeze for UsageEvent
impl RefUnwindSafe for UsageEvent
impl Send for UsageEvent
impl Sync for UsageEvent
impl Unpin for UsageEvent
impl UnsafeUnpin for UsageEvent
impl UnwindSafe for UsageEvent
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