Trait Applies

Source
pub trait Applies {
    // Required methods
    fn in_app_context(&self) -> Option<bool>;
    fn in_global_context(&self) -> Option<bool>;
    fn on_env(&self) -> Option<&Vec<String>>;
    fn on_env_error_msg(&self, e: &String) -> String;

    // Provided methods
    fn applies(&self) -> Result<bool> { ... }
    fn applies_in_app_context(&self) -> Result<bool> { ... }
    fn applies_in_global_context(&self) -> Result<bool> { ... }
    fn applies_in_context(&self) -> Result<bool> { ... }
    fn applies_with_env(&self) -> Result<bool> { ... }
}

Required Methods§

Provided Methods§

Implementors§