Trait pasture_io::base::SeekToPoint[][src]

pub trait SeekToPoint {
    fn seek_point(&mut self, position: SeekFrom) -> Result<usize>;

    fn point_index(&mut self) -> Result<usize> { ... }
fn point_count(&mut self) -> Result<usize> { ... } }

Base trait for all readers and writers that support seeking to a specific point in their underlying stream. This trait is similar to std::io::Seek but instead of seeking to a specific byte offset, it allows seeking to a specific point.

Required methods

fn seek_point(&mut self, position: SeekFrom) -> Result<usize>[src]

Seek to the point at the given position in the underlying stream.

If the seek operation completed successfully, this method returns the new point position from the start of the underlying stream.

Loading content...

Provided methods

fn point_index(&mut self) -> Result<usize>[src]

Returns the index of the current point in the underlying stream. This is equivalent to calling seek_point(SeekFrom::Current(0)).

fn point_count(&mut self) -> Result<usize>[src]

Returns the total number of points in the underlying stream.

Loading content...

Implementors

impl<'a> SeekToPoint for LASReader<'a>[src]

Loading content...