An efficient way of discarding data from a syntax element.
All syntax elements will be successfully read into
the Ignored
struct, with all properties discarded.
Create an instance from syn::DeriveInput
, or return an error.
Create an instance from a syn::Meta
by dispatching to the format-appropriate trait function. This generally should not be overridden by implementers. Read more
Create an instance from the presence of the word in the attribute with no additional options specified. Read more
Create an instance from a list of nested meta items.
Create an instance from a literal value of either foo = "bar"
or foo("bar")
. This dispatches to the appropriate method based on the type of literal encountered, and generally should not be overridden by implementers. Read more
Create an instance from a char literal in a value position.
Create an instance from a string literal in a value position.
Create an instance from a bool literal in a value position.
Create an instance from syn::Variant
, or return an error.
Returns the subset of the queried lifetimes that are used by the implementing syntax element. Read more
Find all used lifetimes, then clone them and return that set.
Returns the subset of the queried type parameters that are used by the implementing syntax element. Read more
Find all type params using uses_type_params
, then clone the found values and return the set.
Returns the "default value" for a type. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given [Hasher
]. Read more
Feeds a slice of this type into the given [Hasher
]. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static