Struct metar::MetarError
source · pub struct MetarError {
pub string: String,
pub start: usize,
pub length: usize,
pub variant: ErrorVariant<Rule>,
}
Expand description
An error when parsing a METAR
Fields§
§string: String
The string being parsed
start: usize
The start index of the error
length: usize
The length of the error’d section
variant: ErrorVariant<Rule>
The kind of error that occurred
Trait Implementations§
source§impl Clone for MetarError
impl Clone for MetarError
source§fn clone(&self) -> MetarError
fn clone(&self) -> MetarError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MetarError
impl Debug for MetarError
source§impl Display for MetarError
impl Display for MetarError
source§impl Error for MetarError
impl Error for MetarError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for MetarError
impl PartialEq for MetarError
source§fn eq(&self, other: &MetarError) -> bool
fn eq(&self, other: &MetarError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MetarError
impl StructuralEq for MetarError
impl StructuralPartialEq for MetarError
Auto Trait Implementations§
impl RefUnwindSafe for MetarError
impl Send for MetarError
impl Sync for MetarError
impl Unpin for MetarError
impl UnwindSafe for MetarError
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