pub struct InferredStructType { /* private fields */ }Expand description
Struct/type identity carried by inferred constructor, match, and field types.
Equality is owner-sensitive; leaf-only names must be resolved before they become inferred semantic types.
Implementations§
Source§impl InferredStructType
impl InferredStructType
pub fn with_owner(owner: DagId, name: StructTypeName) -> Self
pub fn from_resolved(resolved: ResolvedName<StructType>) -> Self
pub const fn from_ref(reference: StructTypeRef) -> Self
pub const fn type_ref(&self) -> &StructTypeRef
pub const fn name(&self) -> &StructTypeName
pub const fn resolved(&self) -> &ResolvedName<StructType>
pub fn matches_resolved(&self, expected: &ResolvedName<StructType>) -> bool
pub fn matches_ref(&self, expected: &StructTypeRef) -> bool
Methods from Deref<Target = StructTypeName>§
Sourcepub fn qualified_by(&self, index: &IndexName) -> QualifiedIndexVariantName
pub fn qualified_by(&self, index: &IndexName) -> QualifiedIndexVariantName
Pair this variant with its index name for qualified rendering.
Trait Implementations§
Source§impl Clone for InferredStructType
impl Clone for InferredStructType
Source§fn clone(&self) -> InferredStructType
fn clone(&self) -> InferredStructType
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 InferredStructType
impl Debug for InferredStructType
Source§impl Deref for InferredStructType
impl Deref for InferredStructType
Source§impl Display for InferredStructType
impl Display for InferredStructType
impl Eq for InferredStructType
Source§impl PartialEq for InferredStructType
impl PartialEq for InferredStructType
Auto Trait Implementations§
impl Freeze for InferredStructType
impl RefUnwindSafe for InferredStructType
impl Send for InferredStructType
impl Sync for InferredStructType
impl Unpin for InferredStructType
impl UnsafeUnpin for InferredStructType
impl UnwindSafe for InferredStructType
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.