pub struct PathSpec {
pub layer: Layer,
pub parent: Option<Box<PathSpec>>,
}Expand description
The recursive locator. Constructed via PathSpec::os + PathSpec::push,
so a new Layer variant is an additive change and callers never build the
chain by hand-nesting Boxes.
Fields§
§layer: Layer§parent: Option<Box<PathSpec>>Implementations§
Source§impl PathSpec
impl PathSpec
Trait Implementations§
Source§impl Display for PathSpec
Lossy, human-readable form — readable, explicitly non-parseable (use
PathSpec::to_uri for a form that round-trips).
impl Display for PathSpec
Lossy, human-readable form — readable, explicitly non-parseable (use
PathSpec::to_uri for a form that round-trips).
impl Eq for PathSpec
impl StructuralPartialEq for PathSpec
Auto Trait Implementations§
impl Freeze for PathSpec
impl RefUnwindSafe for PathSpec
impl Send for PathSpec
impl Sync for PathSpec
impl Unpin for PathSpec
impl UnsafeUnpin for PathSpec
impl UnwindSafe for PathSpec
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