[][src]Trait pcd_rs::record::PCDRecordWrite

pub trait PCDRecordWrite: Sized {
    fn write_spec() -> Vec<(String, ValueKind, usize)>;
fn write_chunk<R: Write>(&self, writer: &mut R) -> Fallible<()>;
fn write_line<R: Write>(&self, writer: &mut R) -> Fallible<()>; }

PCDRecordWrite is analogous to a point written by a writer.

The trait is not intended to be implemented from scratch. You must derive the implementation with #[derive(PCDRecordWrite)].

When the PCD data is in ASCII mode, the record is represented by a line of literals. Otherwise if the data is in binary mode, the record is represented by a fixed size chunk.

Required methods

fn write_spec() -> Vec<(String, ValueKind, usize)>

fn write_chunk<R: Write>(&self, writer: &mut R) -> Fallible<()>

fn write_line<R: Write>(&self, writer: &mut R) -> Fallible<()>

Loading content...

Implementors

Loading content...