#[non_exhaustive]pub struct Unexpanded {
pub file: RelPath,
pub span: SpanFact,
pub module: SharedStr,
pub target: TargetId,
pub invoked: SharedStr,
pub test: TestRole,
pub identifiers: Vec<SharedStr>,
}Expand description
An unexpanded item-producing macro invocation.
Each target/module reach has its own record. This syntax observation defines no name and makes no claim about expansion, resolution or generated items. Invocations directly in modules, traits, impls and foreign blocks are retained. Macro definitions and macros in function or expression bodies are not included.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.file: RelPathThe source file, relative to the workspace root.
span: SpanFactThe whole invocation, including its attributes.
module: SharedStrThe actual enclosing module path for this reach.
target: TargetIdThe target whose selected module tree contains the invocation.
invoked: SharedStrThe written macro path, retaining a leading :: and raw identifiers.
test: TestRoleThe test role, including the enclosing item, modules and the file’s reach.
identifiers: Vec<SharedStr>Argument identifiers in token order, including nested groups, with raw prefixes removed. These are syntax observations, never generated names or resolved references.
Trait Implementations§
Source§impl Clone for Unexpanded
impl Clone for Unexpanded
Source§impl Debug for Unexpanded
impl Debug for Unexpanded
impl Eq for Unexpanded
Source§impl PartialEq for Unexpanded
impl PartialEq for Unexpanded
impl StructuralPartialEq for Unexpanded
Auto Trait Implementations§
impl Forget for Unexpanded
impl Freeze for Unexpanded
impl Move for Unexpanded
impl RefUnwindSafe for Unexpanded
impl Send for Unexpanded
impl Sync for Unexpanded
impl Unpin for Unexpanded
impl UnsafeUnpin for Unexpanded
impl UnwindSafe for Unexpanded
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> EvidenceLease for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more