pub struct CompileAndExeSettings {
pub languages: HashMap<String, CompileAndExeSetting>,
}
Fields§
§languages: HashMap<String, CompileAndExeSetting>
Implementations§
Source§impl CompileAndExeSettings
impl CompileAndExeSettings
pub fn default() -> Self
pub fn get_language_info(&self, language: &str) -> Result<String, String>
pub fn get_languages_info(&self) -> Result<HashMap<String, String>, String>
pub fn self_check(&self) -> Result<(), String>
pub fn load_from_string(s: String, format: FileFormat) -> Result<Self, String>
pub fn load_from_file( file_path: &str, format: FileFormat, ) -> Result<Self, String>
pub fn store_to_file(&self, file_path: &str, format: FileFormat)
pub fn format_to_string(&self, format: FileFormat) -> String
pub fn get_language(&self, language: &str) -> Option<&CompileAndExeSetting>
Trait Implementations§
Source§impl Clone for CompileAndExeSettings
impl Clone for CompileAndExeSettings
Source§fn clone(&self) -> CompileAndExeSettings
fn clone(&self) -> CompileAndExeSettings
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CompileAndExeSettings
impl Debug for CompileAndExeSettings
Source§impl Default for CompileAndExeSettings
impl Default for CompileAndExeSettings
Source§fn default() -> CompileAndExeSettings
fn default() -> CompileAndExeSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CompileAndExeSettings
impl<'de> Deserialize<'de> for CompileAndExeSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CompileAndExeSettings
impl RefUnwindSafe for CompileAndExeSettings
impl Send for CompileAndExeSettings
impl Sync for CompileAndExeSettings
impl Unpin for CompileAndExeSettings
impl UnwindSafe for CompileAndExeSettings
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