Type Definition darling_core::error::Result
source · [−]Expand description
An alias of Result
specific to attribute parsing.
Trait Implementations
sourceimpl<T: FromGenerics> FromGenerics for Result<T>
impl<T: FromGenerics> FromGenerics for Result<T>
fn from_generics(generics: &Generics) -> Result<Self>
sourceimpl<T: FromMeta> FromMeta for Result<T>
impl<T: FromMeta> FromMeta for Result<T>
sourcefn from_meta(item: &Meta) -> Result<Self>
fn from_meta(item: &Meta) -> Result<Self>
Create an instance from a
syn::Meta
by dispatching to the format-appropriate
trait function. This generally should not be overridden by implementers. Read morefn from_nested_meta(item: &NestedMeta) -> Result<Self>
sourcefn from_word() -> Result<Self>
fn from_word() -> Result<Self>
Create an instance from the presence of the word in the attribute with no
additional options specified. Read more
sourcefn from_list(items: &[NestedMeta]) -> Result<Self>
fn from_list(items: &[NestedMeta]) -> Result<Self>
Create an instance from a list of nested meta items.
sourcefn from_value(value: &Lit) -> Result<Self>
fn from_value(value: &Lit) -> Result<Self>
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 moresourcefn from_char(value: char) -> Result<Self>
fn from_char(value: char) -> Result<Self>
Create an instance from a char literal in a value position.
sourcefn from_string(value: &str) -> Result<Self>
fn from_string(value: &str) -> Result<Self>
Create an instance from a string literal in a value position.