Struct proc_macro_kwargs::args::KeywordArg
source · pub struct KeywordArg<K: MacroKeywordArgs> {
pub name: Ident,
pub id: K::ArgId,
pub value: K::ParsedArg,
}
Expand description
A parsed argument, along with its original name and id.
Fields§
§name: Ident
The name of this argument,
as a Ident
This is needed in addition to id
,
because it contains a Span
id: K::ArgId
The id of this argument
value: K::ParsedArg
The parsed value of this argument
Trait Implementations§
source§impl<K: MacroKeywordArgs> Parse for KeywordArg<K>
impl<K: MacroKeywordArgs> Parse for KeywordArg<K>
fn parse(stream: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl<K> Freeze for KeywordArg<K>
impl<K> RefUnwindSafe for KeywordArg<K>where
<K as MacroKeywordArgs>::ArgId: RefUnwindSafe,
<K as MacroKeywordArgs>::ParsedArg: RefUnwindSafe,
impl<K> !Send for KeywordArg<K>
impl<K> !Sync for KeywordArg<K>
impl<K> Unpin for KeywordArg<K>
impl<K> UnwindSafe for KeywordArg<K>
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