[][src]Struct nmea0183::Parser

pub struct Parser { /* fields omitted */ }

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 parse_from_bytes<'a>(
    &'a mut self,
    input: &'a [u8]
) -> impl Iterator<Item = Result<ParseResult, &'static str>> + 'a
[src]

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]

Parse NMEA by one byte at a time. Returns Some if has enough data for parsing.

Auto Trait Implementations

impl Unpin for Parser

impl Send for Parser

impl Sync for Parser

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]