pub struct DefaultPlatformAPI;
Expand description
This uses standard io operations.
The show_input_dialog method is not implemented and will always return an Err, because showing a dialog requires using a platform-dependent GUI API.
Implementations§
Trait Implementations§
Source§impl Debug for DefaultPlatformAPI
impl Debug for DefaultPlatformAPI
Source§impl Default for DefaultPlatformAPI
impl Default for DefaultPlatformAPI
Source§impl PlatformAPI for DefaultPlatformAPI
impl PlatformAPI for DefaultPlatformAPI
Source§fn show_input_dialog(&self, _text: &str) -> Result<String, NativeError>
fn show_input_dialog(&self, _text: &str) -> Result<String, NativeError>
This method is not implemented
Trait doc: show_input_dialog
Source§fn get_lang_files(&self, lang_path: &Path) -> Result<Vec<PathBuf>, Error>
fn get_lang_files(&self, lang_path: &Path) -> Result<Vec<PathBuf>, Error>
Returns all files inside the folder located at
lang_path
Read moreSource§fn get_lang_path(&self, lang_file: &Path) -> Result<PathBuf, Error>
fn get_lang_path(&self, lang_file: &Path) -> Result<PathBuf, Error>
Returns the canonical path of the file located at
lang_file
Read moreSource§fn get_lang_file_name(&self, lang_file: &Path) -> Option<OsString>
fn get_lang_file_name(&self, lang_file: &Path) -> Option<OsString>
Return the file name of the file located at
lang_file
Read moreSource§fn write_lang_file(
&self,
lang_file: &Path,
translation_map: HashMap<String, String>,
) -> Result<(), Error>
fn write_lang_file( &self, lang_file: &Path, translation_map: HashMap<String, String>, ) -> Result<(), Error>
Writes a translation file Read more
Source§fn print_error(&mut self, text: &str)
fn print_error(&mut self, text: &str)
Prints to error output without newline Read more
Source§fn println_error(&mut self, text: &str)
fn println_error(&mut self, text: &str)
Prints to error output with newline Read more
Auto Trait Implementations§
impl Freeze for DefaultPlatformAPI
impl RefUnwindSafe for DefaultPlatformAPI
impl Send for DefaultPlatformAPI
impl Sync for DefaultPlatformAPI
impl Unpin for DefaultPlatformAPI
impl UnwindSafe for DefaultPlatformAPI
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