Enum amplify_syn::MetaArgs [−][src]
pub enum MetaArgs { Literal(Lit), Path(Path), NameValue(MetaArgNameValue), }
Drop-in replacement for syn::NestedMeta
, which allows to parse
attributes which can have arguments made of either literal, path or
MetaArgNameValue
expressions.
Variants
Literal(Lit)
Attribute argument in form of literal
Path(Path)
Attribute argument in form of a path
NameValue(MetaArgNameValue)
Attribute argument in form of name = value
expression, where value
can be any ArgValue
-representable data
Trait Implementations
impl ToTokens for MetaArgs
[src]
impl ToTokens for MetaArgs
[src]fn to_tokens(&self, tokens: &mut TokenStream)
[src]
pub fn to_token_stream(&self) -> TokenStream
[src]
pub fn into_token_stream(self) -> TokenStream
[src]
Auto Trait Implementations
impl RefUnwindSafe for MetaArgs
impl RefUnwindSafe for MetaArgs
impl UnwindSafe for MetaArgs
impl UnwindSafe for MetaArgs