pub struct Encoding(pub u8);Expand description
A miniSEED data encoding value.
Any numeric value can be represented so that unknown encodings read from data
can be reported; use Encoding::sample_type to test for support.
Tuple Fields§
§0: u8Implementations§
Source§impl Encoding
impl Encoding
Sourcepub const GEOSCOPE24: Encoding
pub const GEOSCOPE24: Encoding
[Legacy] GEOSCOPE 24-bit integer.
Sourcepub const GEOSCOPE163: Encoding
pub const GEOSCOPE163: Encoding
[Legacy] GEOSCOPE 16-bit gain ranged, 3-bit exponent.
Sourcepub const GEOSCOPE164: Encoding
pub const GEOSCOPE164: Encoding
[Legacy] GEOSCOPE 16-bit gain ranged, 4-bit exponent.
Sourcepub fn sample_type(self) -> Option<SampleType>
pub fn sample_type(self) -> Option<SampleType>
Decoded sample type for this encoding, None if unsupported.
Sourcepub fn description(self) -> &'static str
pub fn description(self) -> &'static str
Descriptive string.
Trait Implementations§
impl Copy for Encoding
impl Eq for Encoding
Source§impl Ord for Encoding
impl Ord for Encoding
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Encoding
impl PartialOrd for Encoding
impl StructuralPartialEq for Encoding
Auto Trait Implementations§
impl Forget for Encoding
impl Freeze for Encoding
impl Move for Encoding
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnsafeUnpin for Encoding
impl UnwindSafe for Encoding
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.