[][src]Struct ais::sentence::AisParser

pub struct AisParser { /* fields omitted */ }

Methods

impl AisParser[src]

pub fn new() -> Self[src]

Creates a new AisParser instance

pub fn parse<'a>(
    &mut self,
    line: &'a [u8],
    decode: bool
) -> Result<AisFragments<'a>>
[src]

Parses line as an NMEA sentence, checking the checksum and returning an an AisSentence. Note that several AisSentences might be required to complete a message, if they are fragments If message is true, the internal AIS message will also be parsed If it is false, then internal AIS messages will be ignored. In both cases, AIS data will be passed along raw.

Trait Implementations

impl Debug for AisParser[src]

impl Default for AisParser[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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> 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.