pub trait ExternalFiles {
// Provided methods
fn ext_as_virtual(&self, external_id: InternId) -> VirtualFile { ... }
fn try_ext_as_virtual(&self, _external_id: InternId) -> Option<VirtualFile> { ... }
}
Expand description
A trait for defining files external to the filesystem
crate.
Provided Methods§
Sourcefn ext_as_virtual(&self, external_id: InternId) -> VirtualFile
fn ext_as_virtual(&self, external_id: InternId) -> VirtualFile
Returns the virtual file matching the external id.
Sourcefn try_ext_as_virtual(&self, _external_id: InternId) -> Option<VirtualFile>
fn try_ext_as_virtual(&self, _external_id: InternId) -> Option<VirtualFile>
Returns the virtual file matching the external id if found.