Trait kff::section::values::AbcValues

source ·
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§

source

fn new() -> Self

Build an empty Values

source

fn with_capacity(capacity: usize) -> Self

Build an empty Values but with a minimal capacity

source

fn read<R>(inner: &mut R) -> Result<Self>
where R: Read + KffRead,

Build a Values from a readable key are overwrite, section flag must be already read

source

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.

Implementors§