pub enum ConstraintValuePathComponent {
RootField {
field_id: u32,
},
RecordMember {
composite_type_id: u32,
member_id: u32,
},
TupleElement {
composite_type_id: u32,
ordinal: u32,
},
Newtype {
composite_type_id: u32,
},
EnumVariant {
enum_type_id: u32,
variant_id: u32,
},
ListElement {
index: u32,
},
SetElement {
index: u32,
},
MapEntryKey {
index: u32,
},
MapEntryValue {
index: u32,
},
}Expand description
ConstraintValuePathComponent
Stable accepted identity or finite-value coordinate in one targeted-rule violation. Display names are deliberately absent so renames cannot change the diagnostic identity.
Variants§
RootField
Persisted root field whose admitted value was traversed.
RecordMember
Accepted record member selected by immutable composite/member identity.
TupleElement
Tuple element selected by accepted composite identity and ordinal.
Newtype
Transparent accepted newtype boundary.
EnumVariant
Selected accepted enum variant.
ListElement
List element in admitted order.
SetElement
Set element in canonical admitted order.
MapEntryKey
Map key in canonical entry order.
MapEntryValue
Map value in canonical entry order.
Trait Implementations§
Source§impl Clone for ConstraintValuePathComponent
impl Clone for ConstraintValuePathComponent
Source§fn clone(&self) -> ConstraintValuePathComponent
fn clone(&self) -> ConstraintValuePathComponent
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 moreimpl Copy for ConstraintValuePathComponent
Source§impl Debug for ConstraintValuePathComponent
impl Debug for ConstraintValuePathComponent
Source§impl<'de> Deserialize<'de> for ConstraintValuePathComponent
impl<'de> Deserialize<'de> for ConstraintValuePathComponent
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 ConstraintValuePathComponent
impl StructuralPartialEq for ConstraintValuePathComponent
Auto Trait Implementations§
impl Freeze for ConstraintValuePathComponent
impl RefUnwindSafe for ConstraintValuePathComponent
impl Send for ConstraintValuePathComponent
impl Sync for ConstraintValuePathComponent
impl Unpin for ConstraintValuePathComponent
impl UnsafeUnpin for ConstraintValuePathComponent
impl UnwindSafe for ConstraintValuePathComponent
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