pub struct EcmaScriptModuleConfig { /* private fields */ }Expand description
One repository-contained tsconfig.json or jsconfig.json scope.
Implementations§
Source§impl EcmaScriptModuleConfig
impl EcmaScriptModuleConfig
Sourcepub fn new(
config_path: impl Into<String>,
kind: EcmaScriptConfigKind,
base_url: Option<String>,
mappings: Vec<EcmaScriptPathMapping>,
) -> Result<Self, ConfiguredModuleError>
pub fn new( config_path: impl Into<String>, kind: EcmaScriptConfigKind, base_url: Option<String>, mappings: Vec<EcmaScriptPathMapping>, ) -> Result<Self, ConfiguredModuleError>
Construct one validated direct compiler configuration.
base_url and every mapping target must already be normalized relative
to the repository root by the filesystem-owning caller.
§Errors
Returns an error when any path is absolute, traversing, malformed, or exceeds the configured identity bounds.
Trait Implementations§
Source§impl Clone for EcmaScriptModuleConfig
impl Clone for EcmaScriptModuleConfig
Source§fn clone(&self) -> EcmaScriptModuleConfig
fn clone(&self) -> EcmaScriptModuleConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 EcmaScriptModuleConfig
impl Debug for EcmaScriptModuleConfig
Source§impl Ord for EcmaScriptModuleConfig
impl Ord for EcmaScriptModuleConfig
Source§fn cmp(&self, other: &EcmaScriptModuleConfig) -> Ordering
fn cmp(&self, other: &EcmaScriptModuleConfig) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EcmaScriptModuleConfig
impl PartialEq for EcmaScriptModuleConfig
Source§impl PartialOrd for EcmaScriptModuleConfig
impl PartialOrd for EcmaScriptModuleConfig
impl Eq for EcmaScriptModuleConfig
impl StructuralPartialEq for EcmaScriptModuleConfig
Auto Trait Implementations§
impl Freeze for EcmaScriptModuleConfig
impl RefUnwindSafe for EcmaScriptModuleConfig
impl Send for EcmaScriptModuleConfig
impl Sync for EcmaScriptModuleConfig
impl Unpin for EcmaScriptModuleConfig
impl UnwindSafe for EcmaScriptModuleConfig
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.