pub struct PluginsLoader { /* private fields */ }Implementations§
Source§impl PluginsLoader
impl PluginsLoader
pub fn new(cwd: impl Into<PathBuf>) -> Self
pub fn with_module_paths( cwd: impl Into<PathBuf>, module_paths: Vec<PathBuf>, ) -> Self
pub fn load( &self, plugins: &[Plugin], path_to_source: Option<PathBuf>, ) -> Result<MultiNestCompilerPlugins, String>
pub fn resolve_plugin_reference(&self, name: &str) -> Option<PathBuf>
pub fn node_module_paths(&self) -> Vec<PathBuf>
Trait Implementations§
Source§impl Clone for PluginsLoader
impl Clone for PluginsLoader
Source§fn clone(&self) -> PluginsLoader
fn clone(&self) -> PluginsLoader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PluginsLoader
impl Debug for PluginsLoader
Source§impl Default for PluginsLoader
impl Default for PluginsLoader
Source§impl PartialEq for PluginsLoader
impl PartialEq for PluginsLoader
Source§fn eq(&self, other: &PluginsLoader) -> bool
fn eq(&self, other: &PluginsLoader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PluginsLoader
impl StructuralPartialEq for PluginsLoader
Auto Trait Implementations§
impl Freeze for PluginsLoader
impl RefUnwindSafe for PluginsLoader
impl Send for PluginsLoader
impl Sync for PluginsLoader
impl Unpin for PluginsLoader
impl UnsafeUnpin for PluginsLoader
impl UnwindSafe for PluginsLoader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.