pub trait Marshallable {
// Required methods
fn from_bytes(content: &[u8]) -> Self;
fn empty() -> Self;
fn to_bytes(&self) -> Option<Vec<u8>>;
}Expand description
A trait for types that can be edited
Required Methods§
Sourcefn from_bytes(content: &[u8]) -> Self
fn from_bytes(content: &[u8]) -> Self
Parse the contents of a file
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.