Struct las::Version
[−]
[src]
pub struct Version { pub major: u8, pub minor: u8, }
LAS version.
Fields
major: u8
The major version.
For now, always 1.
minor: u8
The minor version.
Methods
impl Version
[src]
fn new(major: u8, minor: u8) -> Version
fn has_file_source_id(&self) -> bool
Does this version have a file source id in the header?
Examples
assert!(!Version::new(1, 0).has_file_source_id()); assert!(Version::new(1, 1).has_file_source_id());
fn has_global_encoding(&self) -> bool
Does this version have a global encoding field?
Examples
assert!(!Version::new(1, 0).has_global_encoding()); assert!(!Version::new(1, 1).has_global_encoding()); assert!(Version::new(1, 2).has_global_encoding());
fn has_mandatory_classification(&self) -> bool
Is the classification field for this version mandatory?
Examples
assert!(!Version::new(1, 0).has_mandatory_classification()); assert!(Version::new(1, 1).has_mandatory_classification());
Trait Implementations
impl PartialEq for Version
[src]
fn eq(&self, __arg_0: &Version) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Version) -> bool
This method tests for !=
.
impl Debug for Version
[src]
impl Copy for Version
[src]
impl Clone for Version
[src]
fn clone(&self) -> Version
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more