Skip to main content

FromAppValue

Trait FromAppValue 

Source
pub trait FromAppValue: Sized {
    // Provided methods
    fn from_config(_s: &str) -> Option<Self> { ... }
    fn from_any(_b: &Box<dyn Any + Send + Sync>) -> Option<Self> { ... }
}

Provided Methods§

Source

fn from_config(_s: &str) -> Option<Self>

Source

fn from_any(_b: &Box<dyn Any + Send + Sync>) -> Option<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FromAppValue for String

Source§

fn from_config(s: &str) -> Option<Self>

Source§

impl<T> FromAppValue for Arc<T>
where T: Any + Send + Sync + 'static,

Source§

fn from_any(b: &Box<dyn Any + Send + Sync>) -> Option<Self>

Implementors§