pub struct FsCachedPath(/* private fields */);Available on crate feature
fs_cache only.Trait Implementations§
Source§impl CachedPath for FsCachedPath
impl CachedPath for FsCachedPath
Source§fn find_package_json<C: Cache<Cp = Self>>(
&self,
options: &ResolveOptions,
cache: &C,
ctx: &mut Ctx,
) -> Result<Option<(Self, Arc<C::Pj>)>, ResolveError>
fn find_package_json<C: Cache<Cp = Self>>( &self, options: &ResolveOptions, cache: &C, ctx: &mut Ctx, ) -> Result<Option<(Self, Arc<C::Pj>)>, ResolveError>
Source§fn normalize_with<C: Cache<Cp = Self>>(
&self,
subpath: impl AsRef<Path>,
cache: &C,
) -> Self
fn normalize_with<C: Cache<Cp = Self>>( &self, subpath: impl AsRef<Path>, cache: &C, ) -> Self
Returns a new path by resolving the given subpath (including “.” and “..” components) with this path.
fn path(&self) -> &Path
fn to_path_buf(&self) -> PathBuf
fn parent(&self) -> Option<&Self>
fn module_directory<C: Cache<Cp = Self>>( &self, module_name: &str, cache: &C, ctx: &mut Ctx, ) -> Option<Self>
fn cached_node_modules<C: Cache<Cp = Self>>( &self, cache: &C, ctx: &mut Ctx, ) -> Option<Self>
fn add_extension<C: Cache<Cp = Self>>(&self, ext: &str, cache: &C) -> Self
fn replace_extension<C: Cache<Cp = Self>>(&self, ext: &str, cache: &C) -> Self
fn normalize_root<C: Cache<Cp = Self>>(&self, _cache: &C) -> Self
Source§impl Clone for FsCachedPath
impl Clone for FsCachedPath
Source§fn clone(&self) -> FsCachedPath
fn clone(&self) -> FsCachedPath
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 Deref for FsCachedPath
impl Deref for FsCachedPath
Source§impl Hash for FsCachedPath
impl Hash for FsCachedPath
Source§impl PartialEq for FsCachedPath
impl PartialEq for FsCachedPath
impl Eq for FsCachedPath
Auto Trait Implementations§
impl Freeze for FsCachedPath
impl !RefUnwindSafe for FsCachedPath
impl Send for FsCachedPath
impl Sync for FsCachedPath
impl Unpin for FsCachedPath
impl !UnwindSafe for FsCachedPath
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.