pub struct SourcePath { /* private fields */ }
Expand description
The full path to source of error from the input.
Composed of PathSegment
s.
Implementations§
Source§impl SourcePath
impl SourcePath
Sourcepub fn join(&self, segment: PathSegment) -> Self
pub fn join(&self, segment: PathSegment) -> Self
Append a new segment to the path.
Sourcepub fn is_matching_base(&self, base: &Self) -> bool
pub fn is_matching_base(&self, base: &Self) -> bool
Check if the other path has the same base as the path at hand.
For example: foo.bar
is the base of foo.bar.baz
.
Trait Implementations§
Source§impl Clone for SourcePath
impl Clone for SourcePath
Source§fn clone(&self) -> SourcePath
fn clone(&self) -> SourcePath
Returns a duplicate of the value. Read more
1.0.0 · 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 SourcePath
impl Debug for SourcePath
Source§impl Default for SourcePath
impl Default for SourcePath
Source§fn default() -> SourcePath
fn default() -> SourcePath
Returns the “default value” for a type. Read more
Source§impl Display for SourcePath
impl Display for SourcePath
Source§impl FromStr for SourcePath
impl FromStr for SourcePath
Source§impl PartialEq for SourcePath
impl PartialEq for SourcePath
impl Eq for SourcePath
impl StructuralPartialEq for SourcePath
Auto Trait Implementations§
impl Freeze for SourcePath
impl RefUnwindSafe for SourcePath
impl Send for SourcePath
impl Sync for SourcePath
impl Unpin for SourcePath
impl UnwindSafe for SourcePath
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