pub struct AttrWithUnknown { /* private fields */ }Available on crate feature
attributes only.Expand description
Low-level attribute parser used internally by the attribute extraction macros.
You should not use this type directly. Use [get_attributes!] or [fields_get_attributes!] instead.
This type is exported for technical reasons (used by the proc macro crate) but is not part of the stable API. Implementation details may change without notice.
Implementations§
Source§impl AttrWithUnknown
impl AttrWithUnknown
pub fn new(attr: &Attribute) -> Result<Option<AttrWithUnknown>, Error>
pub fn get_unknown( &self, attr: &Attribute, ) -> Result<Option<TokenStream>, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AttrWithUnknown
impl RefUnwindSafe for AttrWithUnknown
impl !Send for AttrWithUnknown
impl !Sync for AttrWithUnknown
impl Unpin for AttrWithUnknown
impl UnsafeUnpin for AttrWithUnknown
impl UnwindSafe for AttrWithUnknown
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