ConfigAble

Trait ConfigAble 

Source
pub trait ConfigAble {
    type Error;

    // Required methods
    fn new<T: AsRef<Path>>(path: T) -> T;
    fn empty<T: AsRef<Path>>(path: T) -> Self;
    fn create<T: AsRef<Path>>(path: T) -> Result<(), Self::Error>;
    fn to_string(&self) -> Result<String>;
    fn exit(&self) -> bool;
}

Required Associated Types§

Required Methods§

Source

fn new<T: AsRef<Path>>(path: T) -> T

Source

fn empty<T: AsRef<Path>>(path: T) -> Self

Source

fn create<T: AsRef<Path>>(path: T) -> Result<(), Self::Error>

Source

fn to_string(&self) -> Result<String>

Source

fn exit(&self) -> bool

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.

Implementors§