Struct darling_core::Error
[−]
[src]
pub struct Error { /* fields omitted */ }
An error encountered during attribute parsing.
Methods
impl Error
[src]
fn custom<T: Display>(msg: T) -> Self
fn duplicate_field(name: &str) -> Self
fn missing_field(name: &str) -> Self
fn unknown_field(name: &str) -> Self
fn unsupported_format(format: &str) -> Self
fn unexpected_type(ty: &str) -> Self
fn unknown_value(value: &str) -> Self
fn too_few_items(min: usize) -> Self
fn too_many_items(max: usize) -> Self
fn at<T: Display>(self, location: T) -> Self
Adds a location to the error, such as a field or variant. Locations must be added in reverse order of specificity.
Trait Implementations
impl Debug for Error
[src]
impl StdError for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&StdError>
The lower-level cause of this error, if any. Read more