pub struct ProjectConfig { /* private fields */ }Expand description
Immutable, validated tsconfig metadata. Parsing performs no reads and does not
resolve extends; callers can load that named document under their own I/O policy.
Implementations§
Source§impl ProjectConfig
impl ProjectConfig
Sourcepub fn parse(
root: &ProjectRoot,
config_path: impl AsRef<Path>,
source: &str,
) -> Result<Self, ConfigError>
pub fn parse( root: &ProjectRoot, config_path: impl AsRef<Path>, source: &str, ) -> Result<Self, ConfigError>
Parses one already-loaded tsconfig and confines every concrete path it names.
pub fn path(&self) -> &Path
pub fn extends(&self) -> Option<&str>
pub fn files(&self) -> &[PathBuf]
pub fn include(&self) -> &[Arc<str>]
pub fn exclude(&self) -> &[Arc<str>]
pub const fn options(&self) -> &CompilerOptions
pub const fn raw(&self) -> &JsonObject
Trait Implementations§
Source§impl Clone for ProjectConfig
impl Clone for ProjectConfig
Source§fn clone(&self) -> ProjectConfig
fn clone(&self) -> ProjectConfig
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 ProjectConfig
impl Debug for ProjectConfig
impl Eq for ProjectConfig
Source§impl PartialEq for ProjectConfig
impl PartialEq for ProjectConfig
impl StructuralPartialEq for ProjectConfig
Auto Trait Implementations§
impl Freeze for ProjectConfig
impl RefUnwindSafe for ProjectConfig
impl Send for ProjectConfig
impl Sync for ProjectConfig
impl Unpin for ProjectConfig
impl UnsafeUnpin for ProjectConfig
impl UnwindSafe for ProjectConfig
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