Struct darling_core::options::Shape
[−]
[src]
pub struct Shape { /* fields omitted */ }
Methods
impl Shape
[src]
Trait Implementations
impl Debug for Shape
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Shape
[src]
fn clone(&self) -> Shape
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Shape
[src]
impl FromMeta for Shape
[src]
fn from_list(items: &[NestedMeta]) -> Result<Self>
[src]
Create an instance from a list of nested meta items.
fn from_nested_meta(item: &NestedMeta) -> Result<Self>
[src]
fn from_meta(item: &Meta) -> Result<Self>
[src]
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
fn from_word() -> Result<Self>
[src]
Create an instance from the presence of the word in the attribute with no additional options specified. Read more
fn from_value(value: &Lit) -> Result<Self>
[src]
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
fn from_char(value: char) -> Result<Self>
[src]
Create an instance from a char literal in a value position.
fn from_string(value: &str) -> Result<Self>
[src]
Create an instance from a string literal in a value position.
fn from_bool(value: bool) -> Result<Self>
[src]
Create an instance from a bool literal in a value position.