[][src]Trait pcd_rs::record::PCDRecordRead

pub trait PCDRecordRead: Sized {
    fn read_spec() -> Option<Vec<(Option<String>, ValueKind, Option<usize>)>>;
fn read_chunk<R: BufRead>(
        reader: &mut R,
        field_defs: &[FieldDef]
    ) -> Fallible<Self>;
fn read_line<R: BufRead>(
        reader: &mut R,
        field_defs: &[FieldDef]
    ) -> Fallible<Self>; }

PCDRecordRead is analogous to a point returned from a reader.

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

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 read_spec() -> Option<Vec<(Option<String>, ValueKind, Option<usize>)>>

fn read_chunk<R: BufRead>(
    reader: &mut R,
    field_defs: &[FieldDef]
) -> Fallible<Self>

fn read_line<R: BufRead>(
    reader: &mut R,
    field_defs: &[FieldDef]
) -> Fallible<Self>

Loading content...

Implementations on Foreign Types

impl PCDRecordRead for u8[src]

impl PCDRecordRead for i8[src]

impl PCDRecordRead for u16[src]

impl PCDRecordRead for u32[src]

impl PCDRecordRead for i16[src]

impl PCDRecordRead for i32[src]

impl PCDRecordRead for f32[src]

impl PCDRecordRead for f64[src]

Loading content...

Implementors

impl PCDRecordRead for Record[src]

Loading content...