[−][src]Struct mors::decoder::Decoder
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]
U: From<T>,
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> 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,