pub struct ResolvedHostPath { /* private fields */ }Expand description
One classified host path and its explicit resolution origin.
Implementations§
Source§impl ResolvedHostPath
impl ResolvedHostPath
Sourcepub const fn kind(&self) -> HostPathKind
pub const fn kind(&self) -> HostPathKind
Returns the lexical path category.
Sourcepub const fn purpose(&self) -> &PathPurpose
pub const fn purpose(&self) -> &PathPurpose
Returns why the path is used.
Sourcepub const fn source(&self) -> SourceSpan
pub const fn source(&self) -> SourceSpan
Returns the authored value span.
Sourcepub fn origin(&self) -> &Path
pub fn origin(&self) -> &Path
Returns the first-file project directory used as the path origin.
Sourcepub fn resolved(&self) -> Option<&Path>
pub fn resolved(&self) -> Option<&Path>
Returns the path with its explicit relative or home origin applied.
This is lexical resolution only. It does not canonicalize, follow symlinks, or access the file system. Windows absolute paths remain representable on non-Windows hosts.
Sourcepub const fn is_sensitive(&self) -> bool
pub const fn is_sensitive(&self) -> bool
Reports whether interpolation inserted sensitive content.
Trait Implementations§
Source§impl Clone for ResolvedHostPath
impl Clone for ResolvedHostPath
Source§fn clone(&self) -> ResolvedHostPath
fn clone(&self) -> ResolvedHostPath
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 ResolvedHostPath
impl Debug for ResolvedHostPath
impl Eq for ResolvedHostPath
Source§impl PartialEq for ResolvedHostPath
impl PartialEq for ResolvedHostPath
impl StructuralPartialEq for ResolvedHostPath
Auto Trait Implementations§
impl Freeze for ResolvedHostPath
impl RefUnwindSafe for ResolvedHostPath
impl Send for ResolvedHostPath
impl Sync for ResolvedHostPath
impl Unpin for ResolvedHostPath
impl UnsafeUnpin for ResolvedHostPath
impl UnwindSafe for ResolvedHostPath
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