[−][src]Trait pcd_rs::record::PcdSerialize
PcdSerialize 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(PcdSerialize)]
.
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 is_dynamic() -> bool
fn write_spec() -> Vec<(String, ValueKind, usize)>
fn write_chunk<R: Write + Seek>(
&self,
writer: &mut R,
spec: &[(String, ValueKind, usize)]
) -> Fallible<()>
&self,
writer: &mut R,
spec: &[(String, ValueKind, usize)]
) -> Fallible<()>
fn write_line<R: Write + Seek>(
&self,
writer: &mut R,
spec: &[(String, ValueKind, usize)]
) -> Fallible<()>
&self,
writer: &mut R,
spec: &[(String, ValueKind, usize)]
) -> Fallible<()>
Implementors
impl PcdSerialize for DynRecord
[src]
fn is_dynamic() -> bool
[src]
fn write_spec() -> Vec<(String, ValueKind, usize)>
[src]
fn write_chunk<Writer>(
&self,
writer: &mut Writer,
spec: &[(String, ValueKind, usize)]
) -> Fallible<()> where
Writer: Write + Seek,
[src]
&self,
writer: &mut Writer,
spec: &[(String, ValueKind, usize)]
) -> Fallible<()> where
Writer: Write + Seek,
fn write_line<Writer>(
&self,
writer: &mut Writer,
spec: &[(String, ValueKind, usize)]
) -> Fallible<()> where
Writer: Write + Seek,
[src]
&self,
writer: &mut Writer,
spec: &[(String, ValueKind, usize)]
) -> Fallible<()> where
Writer: Write + Seek,