pub trait ProjectConfigExt {
// Required methods
fn new_config() -> Self;
fn with_defaults(
entry: Option<String>,
output: Option<String>,
watch: Option<bool>,
repeat: Option<bool>,
debug: Option<bool>,
compress: Option<bool>,
) -> Self;
fn get() -> Result<Self, String>
where Self: Sized;
fn from_string(config_string: &str) -> Result<(Self, String), String>
where Self: Sized;
fn write_config(&self, new_config: &Self) -> Result<(), String>
where Self: Sized;
}Required Methods§
fn new_config() -> Self
fn with_defaults( entry: Option<String>, output: Option<String>, watch: Option<bool>, repeat: Option<bool>, debug: Option<bool>, compress: Option<bool>, ) -> Self
fn get() -> Result<Self, String>where
Self: Sized,
fn from_string(config_string: &str) -> Result<(Self, String), String>where
Self: Sized,
fn write_config(&self, new_config: &Self) -> Result<(), String>where
Self: Sized,
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.