[][src]Trait binjs_io::io::Serialization

pub trait Serialization<T> where
    T: ?Sized
{ fn serialize(
        &mut self,
        data: &T,
        path: &mut Path
    ) -> Result<(), TokenWriterError>; }

Required methods

fn serialize(
    &mut self,
    data: &T,
    path: &mut Path
) -> Result<(), TokenWriterError>

Serialize a piece of data.

path indicates the path from the root of the AST.

Loading content...

Implementors

Loading content...