pub struct PackageJsonResolver<TEnv: NodeResolverEnv> { /* private fields */ }
Implementations§
Source§impl<TEnv: NodeResolverEnv> PackageJsonResolver<TEnv>
impl<TEnv: NodeResolverEnv> PackageJsonResolver<TEnv>
pub fn new(env: TEnv) -> Self
pub fn get_closest_package_json( &self, url: &Url, ) -> Result<Option<PackageJsonRc>, ClosestPkgJsonError>
pub fn get_closest_package_json_from_path( &self, file_path: &Path, ) -> Result<Option<PackageJsonRc>, ClosestPkgJsonError>
pub fn load_package_json( &self, path: &Path, ) -> Result<Option<PackageJsonRc>, PackageJsonLoadError>
Trait Implementations§
Auto Trait Implementations§
impl<TEnv> Freeze for PackageJsonResolver<TEnv>where
TEnv: Freeze,
impl<TEnv> RefUnwindSafe for PackageJsonResolver<TEnv>where
TEnv: RefUnwindSafe,
impl<TEnv> Send for PackageJsonResolver<TEnv>where
TEnv: Send,
impl<TEnv> Sync for PackageJsonResolver<TEnv>where
TEnv: Sync,
impl<TEnv> Unpin for PackageJsonResolver<TEnv>where
TEnv: Unpin,
impl<TEnv> UnwindSafe for PackageJsonResolver<TEnv>where
TEnv: UnwindSafe,
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