pub trait ConfigFormat {
// Required methods
fn extension(&self) -> &OsStr;
fn de<T: DeserializeOwned>(&self, slice: &[u8]) -> Result<T, BoxError>;
fn ser<T: Serialize>(&self, t: &T) -> Result<Vec<u8>, BoxError>;
}Required Methods§
fn extension(&self) -> &OsStr
fn de<T: DeserializeOwned>(&self, slice: &[u8]) -> Result<T, BoxError>
fn ser<T: Serialize>(&self, t: &T) -> Result<Vec<u8>, BoxError>
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.