pub enum Data<T> {
Known(T),
Unknown,
}
Expand description
Data that is provided in a metar which might be unknown.
Note that this differs from an Option<T>
field which is used when data
might not be given at all. In the cases where Data<T>
is used, data is
usually given but has been replaced in the METAR by slashes, indicating
that it is not known.
Variants§
Implementations§
Trait Implementations§
source§impl<T: PartialEq> PartialEq for Data<T>
impl<T: PartialEq> PartialEq for Data<T>
impl<T: Eq> Eq for Data<T>
impl<T> StructuralEq for Data<T>
impl<T> StructuralPartialEq for Data<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Data<T>where T: RefUnwindSafe,
impl<T> Send for Data<T>where T: Send,
impl<T> Sync for Data<T>where T: Sync,
impl<T> Unpin for Data<T>where T: Unpin,
impl<T> UnwindSafe for Data<T>where T: UnwindSafe,
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