pub struct UnexpandedMacro {
pub invocation: SourceRange,
pub reason: UnexpandedMacroReason,
}Expand description
A macro invocation the helper deliberately did not expand.
This is coverage information, not a failed unit. A procedural macro can leave the surrounding crate meaningful while its generated declarations remain unavailable; recording the invocation prevents that thin answer from reading as a complete one.
Fields§
§invocation: SourceRangeThe invocation written in the analysed source.
reason: UnexpandedMacroReasonWhy its expansion is absent.
Trait Implementations§
Source§impl Clone for UnexpandedMacro
impl Clone for UnexpandedMacro
Source§fn clone(&self) -> UnexpandedMacro
fn clone(&self) -> UnexpandedMacro
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnexpandedMacro
impl Debug for UnexpandedMacro
Source§impl<'de> Deserialize<'de> for UnexpandedMacro
impl<'de> Deserialize<'de> for UnexpandedMacro
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UnexpandedMacro
Source§impl PartialEq for UnexpandedMacro
impl PartialEq for UnexpandedMacro
Source§impl Serialize for UnexpandedMacro
impl Serialize for UnexpandedMacro
impl StructuralPartialEq for UnexpandedMacro
Auto Trait Implementations§
impl Freeze for UnexpandedMacro
impl RefUnwindSafe for UnexpandedMacro
impl Send for UnexpandedMacro
impl Sync for UnexpandedMacro
impl Unpin for UnexpandedMacro
impl UnsafeUnpin for UnexpandedMacro
impl UnwindSafe for UnexpandedMacro
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