pub struct UseRef {
pub pack: String,
pub span: Span,
pub target_macro: String,
}Expand description
One use: reference inside a pack → the macro it resolves to. Powers
go-to-definition from a use: line to the target macro’s definition.
Fields§
§pack: StringSource name of the pack the use: line lives in.
span: SpanByte span of the use: line in the normalized pack source.
target_macro: StringThe macro the reference resolves to (globally unique name).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UseRef
impl RefUnwindSafe for UseRef
impl Send for UseRef
impl Sync for UseRef
impl Unpin for UseRef
impl UnsafeUnpin for UseRef
impl UnwindSafe for UseRef
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