pub trait Write {
// Required methods
fn header(&self) -> &Header;
fn write(&mut self, point: Point) -> Result<()>;
}👎Deprecated since 0.9.0: This interface has been refactored so that importing Write is no longer required
Expand description
Writes LAS data.
See StdWriter for a concrete implementation.
Required Methods§
Sourcefn header(&self) -> &Header
👎Deprecated since 0.9.0: This interface has been refactored so that importing Write is no longer required
fn header(&self) -> &Header
Returns a reference to this writer’s header.
§Examples
use las::Writer;
let writer = Writer::default();
let header = writer.header();Sourcefn write(&mut self, point: Point) -> Result<()>
👎Deprecated since 0.9.0: This interface has been refactored so that importing Write is no longer required
fn write(&mut self, point: Point) -> Result<()>
Writes a point
§Examples
use std::io::Cursor;
use las::Writer;
let mut writer = Writer::default();
writer.write(Default::default()).unwrap();