pub struct LustConfig { /* private fields */ }Implementations§
Source§impl LustConfig
impl LustConfig
pub fn load_from_path<P: AsRef<Path>>(path: P) -> Result<Self, ConfigError>
pub fn from_toml_str(source: &str) -> Result<Self, ConfigError>
pub fn load_from_dir<P: AsRef<Path>>(dir: P) -> Result<Self, ConfigError>
pub fn load_for_entry<P: AsRef<Path>>( entry_file: P, ) -> Result<Self, ConfigError>
pub fn jit_enabled(&self) -> bool
pub fn is_module_enabled(&self, module: &str) -> bool
pub fn enabled_modules(&self) -> impl Iterator<Item = &str>
pub fn enable_module<S: AsRef<str>>(&mut self, module: S)
pub fn set_jit_enabled(&mut self, enabled: bool)
pub fn with_enabled_modules<I, S>(modules: I) -> Self
pub fn dependencies(&self) -> &[DependencySpec]
Trait Implementations§
Source§impl Clone for LustConfig
impl Clone for LustConfig
Source§fn clone(&self) -> LustConfig
fn clone(&self) -> LustConfig
Returns a duplicate 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 LustConfig
impl Debug for LustConfig
Auto Trait Implementations§
impl Freeze for LustConfig
impl RefUnwindSafe for LustConfig
impl Send for LustConfig
impl Sync for LustConfig
impl Unpin for LustConfig
impl UnsafeUnpin for LustConfig
impl UnwindSafe for LustConfig
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