pub trait AbcValues: Sized {
// Required methods
fn new() -> Self;
fn with_capacity(capacity: usize) -> Self;
fn read<R>(inner: &mut R) -> Result<Self>
where R: Read + KffRead;
fn write<W>(&self, outer: &mut W) -> Result<()>
where W: Write;
fn write_as_footer<W>(&self, outer: &mut W) -> Result<()>
where W: Write + KffWrite;
}Expand description
A trait to implement some function around Values alias
Required Methods§
sourcefn with_capacity(capacity: usize) -> Self
fn with_capacity(capacity: usize) -> Self
Build an empty Values but with a minimal capacity
sourcefn read<R>(inner: &mut R) -> Result<Self>
fn read<R>(inner: &mut R) -> Result<Self>
Build a Values from a readable key are overwrite, section flag must be already read
sourcefn write<W>(&self, outer: &mut W) -> Result<()>where
W: Write,
fn write<W>(&self, outer: &mut W) -> Result<()>where
W: Write,
Write contents of Values in writables, section flag isn’t write
Write contents of Values in a writables as a footer
Object Safety§
This trait is not object safe.