[−][src]Struct nmea0183::Parser
Parses NMEA sentences and stores intermediate parsing state. Parser is tolerant for errors so you should not reinitialize it after errors.
Methods
impl Parser
[src]
pub fn new() -> Parser
[src]
Constructs new Parser.
pub fn source_only(self, source: Source) -> Self
[src]
Accepts only that source
pub fn source_filter(self, source_mask: SourceMask) -> Self
[src]
Ignore all sources except given.
pub fn sentence_only(self, sentence: Sentence) -> Self
[src]
Accepts only that sentence
pub fn sentence_filter(self, sentence_mask: SentenceMask) -> Self
[src]
Ignore all sentences except given.
pub fn parse_from_bytes<'a>(
&'a mut self,
input: &'a [u8]
) -> impl Iterator<Item = Result<ParseResult, &'static str>> + 'a
[src]
&'a mut self,
input: &'a [u8]
) -> impl Iterator<Item = Result<ParseResult, &'static str>> + 'a
Use parser state and bytes slice than returns Iterator that yield ParseResult or errors if has enough data for parsing.
pub fn parse_from_byte(
&mut self,
symbol: u8
) -> Option<Result<ParseResult, &'static str>>
[src]
&mut self,
symbol: u8
) -> Option<Result<ParseResult, &'static str>>
Parse NMEA by one byte at a time. Returns Some if has enough data for parsing.
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,