pub struct LexicalPaths { /* private fields */ }Expand description
What lexical path normalization needs from a backend: its path flavor and
the two bases that give relative and ~ paths a meaning. A plain value, so
code that compares paths without touching the target (the run ledger) can
hold it without holding the backend.
Implementations§
Source§impl LexicalPaths
impl LexicalPaths
pub fn of(backend: &dyn ExecutionBackend) -> Self
Sourcepub fn daemon_host() -> Self
pub fn daemon_host() -> Self
The daemon host’s own paths, for a store opened outside the daemon’s run (a one-shot CLI command) where no execution backend exists.
pub fn normalize(&self, path: &str) -> Result<BackendPath>
Trait Implementations§
Source§impl Clone for LexicalPaths
impl Clone for LexicalPaths
Source§impl Debug for LexicalPaths
impl Debug for LexicalPaths
impl Eq for LexicalPaths
Source§impl PartialEq for LexicalPaths
impl PartialEq for LexicalPaths
impl StructuralPartialEq for LexicalPaths
Auto Trait Implementations§
impl Forget for LexicalPaths
impl Freeze for LexicalPaths
impl Move for LexicalPaths
impl RefUnwindSafe for LexicalPaths
impl Send for LexicalPaths
impl Sync for LexicalPaths
impl Unpin for LexicalPaths
impl UnsafeUnpin for LexicalPaths
impl UnwindSafe for LexicalPaths
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