pub struct StructFieldConstraintKey {
pub owning_type: StructTypeRef,
pub constructor: ConstructorName,
pub field: FieldName,
}Expand description
Owner-qualified key for a domain constraint declared on a struct/union field.
The owning type carries a canonical owner when module-aware type resolution supplied one. The constructor remains a separate typed leaf because union members can share the same field names with different constraints.
Fields§
§owning_type: StructTypeRef§constructor: ConstructorName§field: FieldNameImplementations§
Source§impl StructFieldConstraintKey
impl StructFieldConstraintKey
pub const fn new( owning_type: StructTypeRef, constructor: ConstructorName, field: FieldName, ) -> Self
Trait Implementations§
Source§impl Clone for StructFieldConstraintKey
impl Clone for StructFieldConstraintKey
Source§fn clone(&self) -> StructFieldConstraintKey
fn clone(&self) -> StructFieldConstraintKey
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 StructFieldConstraintKey
impl Debug for StructFieldConstraintKey
impl Eq for StructFieldConstraintKey
Source§impl Hash for StructFieldConstraintKey
impl Hash for StructFieldConstraintKey
Source§impl PartialEq for StructFieldConstraintKey
impl PartialEq for StructFieldConstraintKey
Source§fn eq(&self, other: &StructFieldConstraintKey) -> bool
fn eq(&self, other: &StructFieldConstraintKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StructFieldConstraintKey
Auto Trait Implementations§
impl Freeze for StructFieldConstraintKey
impl RefUnwindSafe for StructFieldConstraintKey
impl Send for StructFieldConstraintKey
impl Sync for StructFieldConstraintKey
impl Unpin for StructFieldConstraintKey
impl UnsafeUnpin for StructFieldConstraintKey
impl UnwindSafe for StructFieldConstraintKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.