pub struct CompilerOptions { /* private fields */ }Expand description
The compiler options needed by deterministic project and module resolution.
Unknown compiler options remain available through ProjectConfig::raw so this
foundation does not silently reinterpret options owned by later compiler phases.
Implementations§
Source§impl CompilerOptions
impl CompilerOptions
pub fn target(&self) -> Option<&str>
pub fn module(&self) -> Option<&str>
pub fn module_resolution(&self) -> Option<&str>
pub fn jsx(&self) -> Option<&str>
pub const fn strict(&self) -> bool
pub const fn allow_js(&self) -> bool
pub const fn check_js(&self) -> bool
pub const fn resolve_json_module(&self) -> bool
pub fn base_url(&self) -> &Path
pub fn root_dir(&self) -> Option<&Path>
pub fn out_dir(&self) -> Option<&Path>
pub fn paths(&self) -> &[PathMapping]
Trait Implementations§
Source§impl Clone for CompilerOptions
impl Clone for CompilerOptions
Source§fn clone(&self) -> CompilerOptions
fn clone(&self) -> CompilerOptions
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 CompilerOptions
impl Debug for CompilerOptions
impl Eq for CompilerOptions
Source§impl PartialEq for CompilerOptions
impl PartialEq for CompilerOptions
impl StructuralPartialEq for CompilerOptions
Auto Trait Implementations§
impl Freeze for CompilerOptions
impl RefUnwindSafe for CompilerOptions
impl Send for CompilerOptions
impl Sync for CompilerOptions
impl Unpin for CompilerOptions
impl UnsafeUnpin for CompilerOptions
impl UnwindSafe for CompilerOptions
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