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();
Trait Implementations§
source§impl<'a> Read for Reader<'a>
impl<'a> Read for Reader<'a>
source§fn seek(&mut self, position: u64) -> Result<()>
fn seek(&mut self, position: u64) -> Result<()>
Seeks to the given point number, zero-indexed.
source§fn points(&mut self) -> PointIterator<'_> ⓘ
fn points(&mut self) -> PointIterator<'_> ⓘ
Returns an iterator over this reader’s points.
Auto Trait Implementations§
impl<'a> Freeze for Reader<'a>
impl<'a> !RefUnwindSafe for Reader<'a>
impl<'a> Send for Reader<'a>
impl<'a> !Sync for Reader<'a>
impl<'a> Unpin for Reader<'a>
impl<'a> !UnwindSafe for Reader<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more