pub struct Reader<'a> { /* private fields */ }
Expand description
Reads LAS data.
Implementations§
source§impl<'a> Reader<'a>
impl<'a> Reader<'a>
sourcepub fn new<R: Read + Seek + Send + Debug + 'a>(read: R) -> Result<Reader<'a>>
pub fn new<R: Read + Seek + Send + Debug + 'a>(read: R) -> Result<Reader<'a>>
Creates a new reader.
This does not wrap the Read
in a BufRead
, so if you’re concered about performance you
should do that wrapping yourself (or use from_path
).
Examples
use std::io::BufReader;
use std::fs::File;
let file = File::open("tests/data/autzen.las").unwrap();
let reader = Reader::new(BufReader::new(file)).unwrap();