pub trait MockWorkspaceWorldExt {
// Required methods
fn entry_state(&self, entry: impl AsRef<Path>) -> FileResult<EntryState>;
fn world(&self, entry: impl Into<PathBuf>) -> MockWorldBuilder;
}Expand description
Extension helpers for using a VFS mock workspace at world level.
Required Methods§
Sourcefn entry_state(&self, entry: impl AsRef<Path>) -> FileResult<EntryState>
fn entry_state(&self, entry: impl AsRef<Path>) -> FileResult<EntryState>
Creates an entry state rooted at this workspace.
Sourcefn world(&self, entry: impl Into<PathBuf>) -> MockWorldBuilder
fn world(&self, entry: impl Into<PathBuf>) -> MockWorldBuilder
Creates a world builder for this workspace and entry file.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.