[−][src]Trait darling_core::FromMeta
Create an instance from an item in an attribute declaration.
Implementing FromMeta
- Do not take a dependency on the
identof the passed-in meta item. The ident will be set by the field name of the containing struct. - Implement only the
from_*methods that you intend to support. The default implementations will return useful errors.
Provided Implementations
bool
- Word with no value specified - becomes
true. - As a boolean literal, e.g.
foo = true. - As a string literal, e.g.
foo = "true".
String
- As a string literal, e.g.
foo = "hello". - As a raw string literal, e.g.
foo = r#"hello "world""#.
()
- Word with no value specified, e.g.
foo. This is best used withOption. Seedarling::util::Flagfor a more strongly-typed alternative.
Option
- Any format produces
Some.
Result<T, darling::Error>
- Allows for fallible parsing; will populate the target field with the result of the parse attempt.
Provided methods
fn from_nested_meta(item: &NestedMeta) -> 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.
fn from_word() -> Result<Self>
Create an instance from the presence of the word in the attribute with no additional options specified.
fn from_list(items: &[NestedMeta]) -> Result<Self>
Create an instance from a list of nested meta items.
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.
fn from_char(value: char) -> Result<Self>
Create an instance from a char literal in a value position.
fn from_string(value: &str) -> Result<Self>
Create an instance from a string literal in a value position.
fn from_bool(value: bool) -> Result<Self>
Create an instance from a bool literal in a value position.
Implementations on Foreign Types
impl FromMeta for ()[src]
impl FromMeta for ()fn from_word() -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for bool[src]
impl FromMeta for boolfn from_word() -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
impl FromMeta for AtomicBool[src]
impl FromMeta for AtomicBoolfn from_meta(mi: &Meta) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for String[src]
impl FromMeta for Stringfn from_string(s: &str) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for u8[src]
impl FromMeta for u8fn from_string(s: &str) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for u16[src]
impl FromMeta for u16fn from_string(s: &str) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for u32[src]
impl FromMeta for u32fn from_string(s: &str) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for u64[src]
impl FromMeta for u64fn from_string(s: &str) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for usize[src]
impl FromMeta for usizefn from_string(s: &str) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for i8[src]
impl FromMeta for i8fn from_string(s: &str) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for i16[src]
impl FromMeta for i16fn from_string(s: &str) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for i32[src]
impl FromMeta for i32fn from_string(s: &str) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for i64[src]
impl FromMeta for i64fn from_string(s: &str) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for isize[src]
impl FromMeta for isizefn from_string(s: &str) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for Ident[src]
impl FromMeta for Identfn from_string(value: &str) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for Path[src]
impl FromMeta for Pathfn from_string(value: &str) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for Meta[src]
impl FromMeta for Metafn from_meta(value: &Meta) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for WhereClause[src]
impl FromMeta for WhereClausefn from_string(value: &str) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for Vec<WherePredicate>[src]
impl FromMeta for Vec<WherePredicate>fn from_string(value: &str) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for RenameRule[src]
impl FromMeta for RenameRulefn from_string(value: &str) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl<T: FromMeta> FromMeta for Option<T>[src]
impl<T: FromMeta> FromMeta for Option<T>fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl<T: FromMeta> FromMeta for Box<T>[src]
impl<T: FromMeta> FromMeta for Box<T>fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl<T: FromMeta> FromMeta for Result<T, Meta>[src]
impl<T: FromMeta> FromMeta for Result<T, Meta>Parses the meta-item, and in case of error preserves a copy of the input for later analysis.
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl<T: FromMeta> FromMeta for Rc<T>[src]
impl<T: FromMeta> FromMeta for Rc<T>fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl<T: FromMeta> FromMeta for Arc<T>[src]
impl<T: FromMeta> FromMeta for Arc<T>fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl<T: FromMeta> FromMeta for RefCell<T>[src]
impl<T: FromMeta> FromMeta for RefCell<T>fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl<V: FromMeta> FromMeta for HashMap<String, V>[src]
impl<V: FromMeta> FromMeta for HashMap<String, V>fn from_list(nested: &[NestedMeta]) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
Implementors
impl FromMeta for ForwardAttrs[src]
impl FromMeta for ForwardAttrsfn from_word() -> Result<Self> | [src] |
fn from_list(nested: &[NestedMeta]) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for DataShape[src]
impl FromMeta for DataShapefn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for Shape[src]
impl FromMeta for Shapefn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for Flag[src]
impl FromMeta for Flagfn from_meta(mi: &Meta) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for IdentList[src]
impl FromMeta for IdentListfn from_list(v: &[NestedMeta]) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for IdentString[src]
impl FromMeta for IdentStringfn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl FromMeta for Ignored[src]
impl FromMeta for Ignoredfn from_meta(_: &Meta) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl<T: FromMeta> FromMeta for Override<T>[src]
impl<T: FromMeta> FromMeta for Override<T>Parses a Meta. A bare word will produce Override::Inherit, while
any value will be forwarded to T::from_meta.
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(lit: &Lit) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl<T: FromMeta> FromMeta for SpannedValue<T>[src]
impl<T: FromMeta> FromMeta for SpannedValue<T>fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl<T: FromMeta> FromMeta for WithOriginal<T, Meta>[src]
impl<T: FromMeta> FromMeta for WithOriginal<T, Meta>fn from_meta(value: &Meta) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |
impl<T: FromMeta> FromMeta for darling_core::error::Result<T>[src]
impl<T: FromMeta> FromMeta for darling_core::error::Result<T>fn from_meta(item: &Meta) -> Result<Self> | [src] |
fn from_nested_meta(item: &NestedMeta) -> Result<Self> | [src] |
fn from_word() -> Result<Self> | [src] |
fn from_list(items: &[NestedMeta]) -> Result<Self> | [src] |
fn from_value(value: &Lit) -> Result<Self> | [src] |
fn from_char(value: char) -> Result<Self> | [src] |
fn from_string(value: &str) -> Result<Self> | [src] |
fn from_bool(value: bool) -> Result<Self> | [src] |