pub struct Morse { /* private fields */ }Implementations§
source§impl Morse
impl Morse
pub fn new( language: String, from_char: fn(_: char) -> Vec<MorseUnit>, into_char: fn(_: Vec<MorseUnit>) -> char, ) -> Morse
pub fn from_str(text: &str) -> Morse
pub fn parse_text(&mut self, text: &str)
pub fn from_bin(bin: &str) -> Morse
pub fn parse_bin(&mut self, bin: &str)
pub fn to_beep(&self)
pub fn get_language(&self) -> String
pub fn dot_as(&mut self, alias: &str)
pub fn line_as(&mut self, alias: &str)
pub fn whitespace_as(&mut self, alias: &str)
pub fn frequency(&mut self, frequency: f32)
pub fn play_speed(&mut self, speed: f32)
pub fn to_bin_str(&self) -> String
Trait Implementations§
impl StructuralPartialEq for Morse
Auto Trait Implementations§
impl Freeze for Morse
impl RefUnwindSafe for Morse
impl Send for Morse
impl Sync for Morse
impl Unpin for Morse
impl UnwindSafe for Morse
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)