pub struct DiskFileSystemMap(/* private fields */);Expand description
An ordered set of canonical system roots and their owning filesystems.
The roots must not overlap: no root may be an ancestor of another root. Self::lookup
relies on this invariant when selecting the nearest preceding root in path order.
Implementations§
Source§impl DiskFileSystemMap
impl DiskFileSystemMap
Sourcepub fn cell(self) -> Vc<Self>
pub fn cell(self) -> Vc<Self>
Places a value in a cell of the current task.
Cell is selected based on the value type and call order of cell.
Sourcepub fn resolved_cell(self) -> ResolvedVc<Self>
pub fn resolved_cell(self) -> ResolvedVc<Self>
Places a value in a cell of the current task. Returns a
[ResolvedVc][turbo_tasks::ResolvedVc].
Cell is selected based on the value type and call order of cell.
Source§impl DiskFileSystemMap
impl DiskFileSystemMap
pub fn has_file_system_other_than( &self, current: ResolvedVc<DiskFileSystem>, ) -> bool
Sourcepub fn lookup(&self, path: &Path) -> Option<FileSystemPath>
pub fn lookup(&self, path: &Path) -> Option<FileSystemPath>
Converts an absolute system path into a path owned by one of the installed filesystems.
Returns None if the file path does not exist inside any other root, or if the relative
path would not be valid unicode.
Sourcepub fn empty() -> OperationVc<DiskFileSystemMap>
pub fn empty() -> OperationVc<DiskFileSystemMap>
Creates a new empty DiskFileSystemMap, used when constructing a DiskFileSystem that
cannot traverse to any other roots outside of itself.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for DiskFileSystemMap
impl<'__de, __Context> BorrowDecode<'__de, __Context> for DiskFileSystemMap
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Source§impl<__Context> Decode<__Context> for DiskFileSystemMap
impl<__Context> Decode<__Context> for DiskFileSystemMap
Source§impl Encode for DiskFileSystemMap
impl Encode for DiskFileSystemMap
impl Eq for DiskFileSystemMap
Source§impl FromIterator<(PathBuf, ResolvedVc<DiskFileSystem>)> for DiskFileSystemMap
impl FromIterator<(PathBuf, ResolvedVc<DiskFileSystem>)> for DiskFileSystemMap
Source§fn from_iter<T: IntoIterator<Item = (PathBuf, ResolvedVc<DiskFileSystem>)>>(
iter: T,
) -> Self
fn from_iter<T: IntoIterator<Item = (PathBuf, ResolvedVc<DiskFileSystem>)>>( iter: T, ) -> Self
impl NonLocalValue for DiskFileSystemMap
Source§impl PartialEq for DiskFileSystemMap
impl PartialEq for DiskFileSystemMap
Source§impl ShrinkToFit for DiskFileSystemMap
impl ShrinkToFit for DiskFileSystemMap
fn shrink_to_fit(&mut self)
impl StructuralPartialEq for DiskFileSystemMap
impl Upcast<Box<dyn ValueDebug>> for DiskFileSystemMap
impl UpcastStrict<Box<dyn ValueDebug>> for DiskFileSystemMap
Source§impl ValueDebug for DiskFileSystemMap
impl ValueDebug for DiskFileSystemMap
Source§impl ValueDebugFormat for DiskFileSystemMap
Available on debug-assertions enabled only.
impl ValueDebugFormat for DiskFileSystemMap
fn value_debug_format<'a>(&'a self, depth: usize) -> ValueDebugFormatString<'a>
Source§impl VcValueType for DiskFileSystemMap
impl VcValueType for DiskFileSystemMap
Source§type Read = VcDefaultRead<DiskFileSystemMap>
type Read = VcDefaultRead<DiskFileSystemMap>
Source§type CellMode = VcCellCompareMode<DiskFileSystemMap>
type CellMode = VcCellCompareMode<DiskFileSystemMap>
Source§fn get_value_type_id() -> ValueTypeId
fn get_value_type_id() -> ValueTypeId
fn has_serialization() -> bool
Auto Trait Implementations§
impl !RefUnwindSafe for DiskFileSystemMap
impl !UnwindSafe for DiskFileSystemMap
impl Freeze for DiskFileSystemMap
impl Send for DiskFileSystemMap
impl Sync for DiskFileSystemMap
impl Unpin for DiskFileSystemMap
impl UnsafeUnpin for DiskFileSystemMap
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
impl<T> DynEq for T
§impl<T> DynPartialEq for T
impl<T> DynPartialEq for T
fn dyn_partial_eq(&self, other: &(dyn Any + 'static)) -> bool
§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
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more