pub enum DiagnosticPathSegment {
Field(String),
Index(u64),
Identifier(String),
}Expand description
One typed segment in a contract diagnostic path.
Variants§
Field(String)
An object field.
Index(u64)
A zero-based collection index.
Identifier(String)
A typed identifier rendered for diagnostics.
Trait Implementations§
Source§impl Clone for DiagnosticPathSegment
impl Clone for DiagnosticPathSegment
Source§fn clone(&self) -> DiagnosticPathSegment
fn clone(&self) -> DiagnosticPathSegment
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 DiagnosticPathSegment
impl Debug for DiagnosticPathSegment
Source§impl<'de> Deserialize<'de> for DiagnosticPathSegment
impl<'de> Deserialize<'de> for DiagnosticPathSegment
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 DiagnosticPathSegment
Source§impl From<&DiagnosticPathSegment> for RemoteDiagnosticPathSegmentV2
impl From<&DiagnosticPathSegment> for RemoteDiagnosticPathSegmentV2
Source§fn from(value: &DiagnosticPathSegment) -> Self
fn from(value: &DiagnosticPathSegment) -> Self
Converts to this type from the input type.
Source§impl From<&RemoteDiagnosticPathSegmentV2> for DiagnosticPathSegment
impl From<&RemoteDiagnosticPathSegmentV2> for DiagnosticPathSegment
Source§fn from(value: &RemoteDiagnosticPathSegmentV2) -> Self
fn from(value: &RemoteDiagnosticPathSegmentV2) -> Self
Converts to this type from the input type.
Source§impl Hash for DiagnosticPathSegment
impl Hash for DiagnosticPathSegment
Source§impl Ord for DiagnosticPathSegment
impl Ord for DiagnosticPathSegment
Source§fn cmp(&self, other: &DiagnosticPathSegment) -> Ordering
fn cmp(&self, other: &DiagnosticPathSegment) -> 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 DiagnosticPathSegment
impl PartialEq for DiagnosticPathSegment
Source§impl PartialOrd for DiagnosticPathSegment
impl PartialOrd for DiagnosticPathSegment
Source§impl Serialize for DiagnosticPathSegment
impl Serialize for DiagnosticPathSegment
impl StructuralPartialEq for DiagnosticPathSegment
Auto Trait Implementations§
impl Freeze for DiagnosticPathSegment
impl RefUnwindSafe for DiagnosticPathSegment
impl Send for DiagnosticPathSegment
impl Sync for DiagnosticPathSegment
impl Unpin for DiagnosticPathSegment
impl UnsafeUnpin for DiagnosticPathSegment
impl UnwindSafe for DiagnosticPathSegment
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