pub struct DiagnosticPath(/* private fields */);Expand description
A typed path into one canonical contract value.
Implementations§
Source§impl DiagnosticPath
impl DiagnosticPath
Sourcepub fn from_segments(
segments: impl IntoIterator<Item = DiagnosticPathSegment>,
) -> Self
pub fn from_segments( segments: impl IntoIterator<Item = DiagnosticPathSegment>, ) -> Self
Construct a path from typed segments.
Sourcepub fn segments(&self) -> &[DiagnosticPathSegment]
pub fn segments(&self) -> &[DiagnosticPathSegment]
Return the ordered segments.
Sourcepub fn push(&mut self, segment: DiagnosticPathSegment)
pub fn push(&mut self, segment: DiagnosticPathSegment)
Append one segment.
Trait Implementations§
Source§impl Clone for DiagnosticPath
impl Clone for DiagnosticPath
Source§fn clone(&self) -> DiagnosticPath
fn clone(&self) -> DiagnosticPath
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 DiagnosticPath
impl Debug for DiagnosticPath
Source§impl Default for DiagnosticPath
impl Default for DiagnosticPath
Source§fn default() -> DiagnosticPath
fn default() -> DiagnosticPath
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DiagnosticPath
impl<'de> Deserialize<'de> for DiagnosticPath
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DiagnosticPath
Source§impl Hash for DiagnosticPath
impl Hash for DiagnosticPath
Source§impl Ord for DiagnosticPath
impl Ord for DiagnosticPath
Source§fn cmp(&self, other: &DiagnosticPath) -> Ordering
fn cmp(&self, other: &DiagnosticPath) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DiagnosticPath
impl PartialEq for DiagnosticPath
Source§impl PartialOrd for DiagnosticPath
impl PartialOrd for DiagnosticPath
Source§impl Serialize for DiagnosticPath
impl Serialize for DiagnosticPath
impl StructuralPartialEq for DiagnosticPath
Auto Trait Implementations§
impl Freeze for DiagnosticPath
impl RefUnwindSafe for DiagnosticPath
impl Send for DiagnosticPath
impl Sync for DiagnosticPath
impl Unpin for DiagnosticPath
impl UnsafeUnpin for DiagnosticPath
impl UnwindSafe for DiagnosticPath
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