pub struct BaseCompilerContext {
pub cwd: PathBuf,
pub configuration: Configuration,
}Fields§
§cwd: PathBuf§configuration: ConfigurationImplementations§
Source§impl BaseCompilerContext
impl BaseCompilerContext
pub fn new(cwd: impl Into<PathBuf>, configuration: Configuration) -> Self
pub fn compiler_options_for(&self, app_name: Option<&str>) -> CompilerOptions
pub fn source_root_for(&self, app_name: Option<&str>) -> String
pub fn plugins_for(&self, app_name: Option<&str>) -> Vec<Plugin>
Trait Implementations§
Source§impl Clone for BaseCompilerContext
impl Clone for BaseCompilerContext
Source§fn clone(&self) -> BaseCompilerContext
fn clone(&self) -> BaseCompilerContext
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 BaseCompilerContext
impl Debug for BaseCompilerContext
Source§impl PartialEq for BaseCompilerContext
impl PartialEq for BaseCompilerContext
Source§fn eq(&self, other: &BaseCompilerContext) -> bool
fn eq(&self, other: &BaseCompilerContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BaseCompilerContext
impl StructuralPartialEq for BaseCompilerContext
Auto Trait Implementations§
impl Freeze for BaseCompilerContext
impl RefUnwindSafe for BaseCompilerContext
impl Send for BaseCompilerContext
impl Sync for BaseCompilerContext
impl Unpin for BaseCompilerContext
impl UnsafeUnpin for BaseCompilerContext
impl UnwindSafe for BaseCompilerContext
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.