Enum amplify_syn::ArgValue [−][src]
Expand description
Value for attribute or attribute argument, i.e. for #[attr = value]
and
#[attr(arg = value)]
this is the value
part of the attribute. Can be
either a single literal or a single valid rust type name
Variants
Attribute value represented by a literal
Tuple Fields of Literal
0: Lit
Attribute value represented by a type name
Tuple Fields of Type
0: Type
No value is given
Implementations
Returns literal value for ArgValue::Literal
variant or fails with
Error::ArgValueMustBeLiteral
otherwise
Returns type value for ArgValue::Type
variant or fails with
Error::ArgValueMustBeType
otherwise
Tests whether the self is set to ArgValue::None
Tests whether the self is not set to ArgValue::None
Returns ValueClass
for the current value, if any
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ArgValue
impl UnwindSafe for ArgValue
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty. Read more