pub trait FromAttribute: FromStr {
    fn from_attr(s: &str) -> Result<Self> { ... }
}
Expand description

Trait to convert an attribute string to a typed value.

Provided Methods§

source

fn from_attr(s: &str) -> Result<Self>

Converts a string attribute to a value type.

Implementations on Foreign Types§

source§

impl FromAttribute for bool

source§

fn from_attr(s: &str) -> Result<Self>

source§

impl FromAttribute for i32

source§

impl FromAttribute for u32

source§

impl FromAttribute for i64

source§

impl FromAttribute for u64

source§

impl FromAttribute for i128

source§

impl FromAttribute for u128

source§

impl FromAttribute for f64

source§

impl FromAttribute for String

Implementors§