[][src]Struct mors::decoder::Decoder

pub struct Decoder { /* fields omitted */ }

A Structure holding the morse codec, in order to decode a morse sequence into a letter that is listed in the international morse code.

Methods

impl Decoder[src]

pub fn new() -> Decoder[src]

Create a new Decoder. Will create a new Codec during the creation of the Decoder.

pub fn decode_message(&self, morse_sequence: String) -> String[src]

For a given message, iterate over the space seperated message parts in the morse code. Search the letter that is represented by the sequenece of {.} and {-} given in as the morse_sequence parameter.

Auto Trait Implementations

impl Send for Decoder

impl Unpin for Decoder

impl Sync for Decoder

impl UnwindSafe for Decoder

impl RefUnwindSafe for Decoder

Blanket Implementations

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.

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

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

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