pub enum PathAnchor {
WorkspaceAbsolute,
ProjectRelative,
}Expand description
Where a path pattern resolves from.
Mirrors the workspace-absolute / project-relative dichotomy of
HazPath, but is exposed as its own type so the
GlobPattern variant can carry it without conflating with the
HazPath variants.
Variants§
WorkspaceAbsolute
Resolves against the workspace root (PATH-004).
ProjectRelative
Resolves against the bearing field’s project root
(PATH-005).
Trait Implementations§
Source§impl Clone for PathAnchor
impl Clone for PathAnchor
Source§fn clone(&self) -> PathAnchor
fn clone(&self) -> PathAnchor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PathAnchor
impl Debug for PathAnchor
Source§impl Hash for PathAnchor
impl Hash for PathAnchor
Source§impl PartialEq for PathAnchor
impl PartialEq for PathAnchor
Source§fn eq(&self, other: &PathAnchor) -> bool
fn eq(&self, other: &PathAnchor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PathAnchor
impl Eq for PathAnchor
impl StructuralPartialEq for PathAnchor
Auto Trait Implementations§
impl Freeze for PathAnchor
impl RefUnwindSafe for PathAnchor
impl Send for PathAnchor
impl Sync for PathAnchor
impl Unpin for PathAnchor
impl UnsafeUnpin for PathAnchor
impl UnwindSafe for PathAnchor
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