Enum las::point::ScanDirection [] [src]

pub enum ScanDirection {
    Backward,
    Forward,
}

An enum to represent scan direction.

Variants

Backward

The mirror is traveling in a negative direction, right to left.

Forward

The mirror is traveling in a positive direction, left to right.

Methods

impl ScanDirection

fn as_u8(&self) -> u8

Converts this scan direction to a u8.

Examples

use las::point::ScanDirection;
let forward = ScanDirection::Forward;
assert_eq!(1, forward.as_u8());

Trait Implementations

impl Default for ScanDirection

fn default() -> ScanDirection

impl From<bool> for ScanDirection

fn from(b: bool) -> ScanDirection

Derived Implementations

impl PartialEq for ScanDirection

fn eq(&self, __arg_0: &ScanDirection) -> bool

fn ne(&self, __arg_0: &ScanDirection) -> bool

impl Debug for ScanDirection

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Copy for ScanDirection

impl Clone for ScanDirection

fn clone(&self) -> ScanDirection

fn clone_from(&mut self, source: &Self)