Trait las::feature::Feature

source ·
pub trait Feature {
    fn is_supported_by(version: Version) -> bool;
    fn name() -> &'static str;
}
Expand description

A trait implemented by each feature.

Required Methods§

Is this feature supported by this version?

Examples
use las::feature::{Waveforms, Feature};
use las::Version;
assert!(!Waveforms::is_supported_by(Version::new(1, 2)));
assert!(Waveforms::is_supported_by(Version::new(1, 4)));

Returns the name of this feature.

Examples
use las::feature::{Waveforms, Feature};
assert_eq!("Waveforms", Waveforms::name());

Implementors§