pub struct Library<'a> { /* private fields */ }
Implementations§
source§impl<'a> Library<'a>
impl<'a> Library<'a>
pub fn new(verbose_init: bool, config: &'a Config) -> Result<Library<'_>>
pub fn reload_modules(&mut self) -> Result<usize>
pub fn private_modules(path: &Path) -> Result<bool>
pub fn reload_modules_quiet(&mut self) -> Result<()>
pub fn load_module_folder( &mut self, folder: &Path, author_name: &str, private_modules: bool ) -> Result<()>
pub fn load_single_module( &mut self, path: &Path, author_name: &str, module_name: &str, private_module: bool ) -> Result<()>
pub fn get(&self, name: &str) -> Result<&Module>
pub fn get_opt(&self, name: &str) -> Result<Option<&Module>>
pub fn list(&self) -> Vec<&Module>
pub fn variants(&self) -> Vec<String>
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Library<'a>
impl<'a> Send for Library<'a>
impl<'a> Sync for Library<'a>
impl<'a> Unpin for Library<'a>
impl<'a> UnwindSafe for Library<'a>
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
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> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more