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§
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
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.