pub struct WorkspaceContext { /* private fields */ }Implementations§
Source§impl WorkspaceContext
impl WorkspaceContext
pub fn new(paths: WorkspacePaths) -> Self
pub fn paths(&self) -> &WorkspacePaths
pub fn into_paths(self) -> WorkspacePaths
Sourcepub fn resolve_locator(
&self,
locator: impl AsRef<str>,
) -> Result<PathBuf, WorkspaceError>
pub fn resolve_locator( &self, locator: impl AsRef<str>, ) -> Result<PathBuf, WorkspaceError>
Resolves SpecMan handles (spec://, impl://, scratch://) or workspace paths into
absolute paths within the active workspace. Results are memoized per locator string to
avoid repeated filesystem checks.
Trait Implementations§
Source§impl Clone for WorkspaceContext
impl Clone for WorkspaceContext
Source§fn clone(&self) -> WorkspaceContext
fn clone(&self) -> WorkspaceContext
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 moreAuto Trait Implementations§
impl Freeze for WorkspaceContext
impl RefUnwindSafe for WorkspaceContext
impl Send for WorkspaceContext
impl Sync for WorkspaceContext
impl Unpin for WorkspaceContext
impl UnwindSafe for WorkspaceContext
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