pub struct Record<'a>(/* private fields */);Expand description
Represents a single LDM record with its data which may be compressed.
The Unidata Local Data Manager (LDM) is a data distribution system used by the NWS to distribute NEXRAD archival radar data. A NEXRAD “Archive II” file starts with an crate::volume::Header followed by a series of compressed LDM records, each containing messages with radar data.
Implementations§
Source§impl<'a> Record<'a>
impl<'a> Record<'a>
Sourcepub fn from_slice(data: &'a [u8]) -> Self
pub fn from_slice(data: &'a [u8]) -> Self
Creates a new LDM record with the provided data slice.
Sourcepub fn compressed(&self) -> bool
pub fn compressed(&self) -> bool
Whether this LDM record’s data is compressed.
Sourcepub fn decompress<'b>(&self) -> Result<Record<'b>>
pub fn decompress<'b>(&self) -> Result<Record<'b>>
Decompresses this LDM record’s data.
Trait Implementations§
impl<'a> Eq for Record<'a>
impl<'a> StructuralPartialEq for Record<'a>
Auto Trait Implementations§
impl<'a> Freeze for Record<'a>
impl<'a> RefUnwindSafe for Record<'a>
impl<'a> Send for Record<'a>
impl<'a> Sync for Record<'a>
impl<'a> Unpin for Record<'a>
impl<'a> UnwindSafe for Record<'a>
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> 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.