pub struct PathSpec {
pub kind: String,
pub path: Option<String>,
pub full: Option<String>,
pub base: String,
pub abs: bool,
}Expand description
The path to a source, including the base prefix when there is one.
Fields§
§kind: StringThe source kind, normally the extension of the last path segment.
path: Option<String>The reference exactly as written, which may be relative.
full: Option<String>The normalized full path.
base: StringThe base the reference resolved against.
abs: boolWhether the reference was absolute.
Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.