[go: up one dir, main page]

Trait tora::write::ToraWrite

source ·
pub trait ToraWrite {
    // Required methods
    fn writes<S>(&mut self, s: &S) -> Result<()>
       where S: SerializeIo;
    fn write_dyn<T, D>(&mut self, d: D) -> Result<()>
       where D: AsRef<[T]>,
             T: SerializeIo;
}
Expand description

An extension to the standard Write trait.

Required Methods§

source

fn writes<S>(&mut self, s: &S) -> Result<()>where S: SerializeIo,

Serialize and write the given data.

source

fn write_dyn<T, D>(&mut self, d: D) -> Result<()>where D: AsRef<[T]>, T: SerializeIo,

Write a dynamic amount of objects.

Opposite of ToraRead::read_dyn.

Implementors§

source§

impl<W> ToraWrite for Wwhere W: Write,