pub struct IOProcessor {
pub language: Language,
/* private fields */
}
Fields§
§language: Language
Implementations§
Source§impl IOProcessor
impl IOProcessor
Sourcepub fn new(language: Language, translator: Box<dyn Translator>) -> IOProcessor
pub fn new(language: Language, translator: Box<dyn Translator>) -> IOProcessor
§new
Instantiates a new IOProcessor with the provided translator
Sourcepub fn expression_to_latin(
&self,
expression: &String,
) -> Result<String, ExpressionParserError>
pub fn expression_to_latin( &self, expression: &String, ) -> Result<String, ExpressionParserError>
§expression_to_latin
Converts a cyrillic expression into a latin string ready to be performed as a shell process An expression must care of backslashes, escapes and inner expressions ‘(…)’
pub fn expression_to_cyrillic( &self, expression: &String, ) -> Result<String, ExpressionParserError>
Sourcepub fn text_to_latin(&self, text: &String) -> String
pub fn text_to_latin(&self, text: &String) -> String
§text_to_latin
Converts a cyrillic text into latin using the provided translator
Sourcepub fn text_to_cyrillic(&self, text: &String) -> String
pub fn text_to_cyrillic(&self, text: &String) -> String
§text_to_cyrillic
Converts a latin text into cyrillic using the provided translator
Auto Trait Implementations§
impl Freeze for IOProcessor
impl !RefUnwindSafe for IOProcessor
impl !Send for IOProcessor
impl !Sync for IOProcessor
impl Unpin for IOProcessor
impl !UnwindSafe for IOProcessor
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