pub struct PackageJsonResolver<TSys: FsRead> { /* private fields */ }Implementations§
Source§impl<TSys: FsRead> PackageJsonResolver<TSys>
impl<TSys: FsRead> PackageJsonResolver<TSys>
pub fn new(sys: TSys, loader_cache: Option<PackageJsonCacheRc>) -> Self
pub fn get_closest_package_json( &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<TSys> Freeze for PackageJsonResolver<TSys>where
TSys: Freeze,
impl<TSys> !RefUnwindSafe for PackageJsonResolver<TSys>
impl<TSys> !Send for PackageJsonResolver<TSys>
impl<TSys> !Sync for PackageJsonResolver<TSys>
impl<TSys> Unpin for PackageJsonResolver<TSys>where
TSys: Unpin,
impl<TSys> !UnwindSafe for PackageJsonResolver<TSys>
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