Skip to main content

ResolverFactory

Struct ResolverFactory 

Source
pub struct ResolverFactory<TSys: WorkspaceFactorySys> { /* private fields */ }

Implementations§

Source§

impl<TSys: WorkspaceFactorySys> ResolverFactory<TSys>

Source

pub fn new( workspace_factory: WorkspaceFactoryRc<TSys>, options: ResolverFactoryOptions, ) -> Self

Source

pub async fn raw_deno_resolver( &self, ) -> Result<&DefaultRawDenoResolverRc<TSys>, Error>

Source

pub fn cjs_module_export_analyzer( &self, ) -> Result<&DenoCjsModuleExportAnalyzerRc<TSys>, Error>

Source

pub fn cjs_tracker( &self, ) -> Result<&CjsTrackerRc<DenoInNpmPackageChecker, TSys>, Error>

Source

pub fn compiler_options_resolver( &self, ) -> Result<&CompilerOptionsResolverRc, Error>

Source

pub fn in_npm_package_checker(&self) -> Result<&DenoInNpmPackageChecker, Error>

Source

pub fn minimum_dependency_age_config( &self, ) -> Result<&MinimumDependencyAgeConfig, Error>

The newest allowed dependency date.

Source

pub fn node_code_translator( &self, ) -> Result<&DenoNodeCodeTranslatorRc<TSys>, Error>

Source

pub fn node_resolver( &self, ) -> Result<&NodeResolverRc<DenoInNpmPackageChecker, DenoIsBuiltInNodeModuleChecker, NpmResolver<TSys>, TSys>, Error>

Source

pub fn npm_module_loader(&self) -> Result<&DenoNpmModuleLoaderRc<TSys>, Error>

Source

pub fn npm_resolution(&self) -> &NpmResolutionCellRc

Source

pub fn npm_req_resolver( &self, ) -> Result<&NpmReqResolverRc<DenoInNpmPackageChecker, DenoIsBuiltInNodeModuleChecker, NpmResolver<TSys>, TSys>, Error>

Source

pub fn npm_resolver(&self) -> Result<&NpmResolver<TSys>, Error>

Source

pub fn npm_version_resolver(&self) -> Result<&NpmVersionResolverRc, Error>

Source

pub fn pkg_json_resolver(&self) -> &PackageJsonResolverRc<TSys>

Source

pub fn workspace_factory(&self) -> &WorkspaceFactoryRc<TSys>

Source

pub async fn workspace_resolver( &self, ) -> Result<&WorkspaceResolverRc<TSys>, Error>

Source

pub fn npm_system_info(&self) -> &NpmSystemInfo

Source

pub fn use_byonm(&self) -> Result<bool, Error>

Auto Trait Implementations§

§

impl<TSys> !Freeze for ResolverFactory<TSys>

§

impl<TSys> !RefUnwindSafe for ResolverFactory<TSys>

§

impl<TSys> !Send for ResolverFactory<TSys>

§

impl<TSys> !Sync for ResolverFactory<TSys>

§

impl<TSys> !UnwindSafe for ResolverFactory<TSys>

§

impl<TSys> Unpin for ResolverFactory<TSys>

§

impl<TSys> UnsafeUnpin for ResolverFactory<TSys>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> MaybeSend for T
where T: ?Sized,

Source§

impl<T> MaybeSendSync for T

Source§

impl<T> MaybeSync for T
where T: ?Sized,

Source§

impl<T> PathsInErrorsExt for T
where T: ?Sized,

Source§

fn with_paths_in_errors(&self) -> SysWithPathsInErrors<'_, Self>

Wraps self in a SysWithPathsInErrors that includes paths in error messages.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.