pub struct ResolvedType { /* private fields */ }Expand description
Fully resolved type semantics, rebuilt only from direct facts.
Implementations§
Source§impl ResolvedType
impl ResolvedType
Sourcepub fn supertypes(&self) -> &[TypeId]
pub fn supertypes(&self) -> &[TypeId]
Return transitive supertypes from nearest to furthest.
Sourcepub const fn direct_sub(&self) -> Option<&EffectiveSub>
pub const fn direct_sub(&self) -> Option<&EffectiveSub>
Return the exact direct subtype edge, if this type declares a parent.
Sourcepub const fn annotations(
&self,
) -> &BTreeMap<AnnotationKindId, SchemaAnnotationValue>
pub const fn annotations( &self, ) -> &BTreeMap<AnnotationKindId, SchemaAnnotationValue>
Return effective type annotations.
Sourcepub const fn value_type(&self) -> Option<&EffectiveValueType>
pub const fn value_type(&self) -> Option<&EffectiveValueType>
Return the effective attribute value domain, if this is an attribute.
Sourcepub const fn owns(&self) -> &BTreeMap<AttributeId, EffectiveOwns>
pub const fn owns(&self) -> &BTreeMap<AttributeId, EffectiveOwns>
Return effective ownerships keyed by attribute identity.
Sourcepub const fn plays(&self) -> &BTreeMap<RoleId, EffectivePlays>
pub const fn plays(&self) -> &BTreeMap<RoleId, EffectivePlays>
Return effective role-playing interfaces keyed by role identity.
Sourcepub const fn relates(&self) -> &BTreeMap<RoleId, EffectiveRelates>
pub const fn relates(&self) -> &BTreeMap<RoleId, EffectiveRelates>
Return effective related roles for relation types.
Sourcepub const fn key_attributes(&self) -> &BTreeSet<AttributeId>
pub const fn key_attributes(&self) -> &BTreeSet<AttributeId>
Return effective key attributes.
Sourcepub const fn unique_attributes(&self) -> &BTreeSet<AttributeId>
pub const fn unique_attributes(&self) -> &BTreeSet<AttributeId>
Return effective unique attributes not implied solely by key.
Sourcepub fn owned_attribute_order(&self) -> &[AttributeId]
pub fn owned_attribute_order(&self) -> &[AttributeId]
Return deterministic ownership order metadata.
Sourcepub const fn is_abstract(&self) -> bool
pub const fn is_abstract(&self) -> bool
Report direct abstractness.
Sourcepub const fn is_constructible(&self) -> bool
pub const fn is_constructible(&self) -> bool
Report whether instances can be constructed under effective role constraints.
Trait Implementations§
Source§impl Clone for ResolvedType
impl Clone for ResolvedType
Source§fn clone(&self) -> ResolvedType
fn clone(&self) -> ResolvedType
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 ResolvedType
impl Debug for ResolvedType
impl Eq for ResolvedType
Source§impl PartialEq for ResolvedType
impl PartialEq for ResolvedType
impl StructuralPartialEq for ResolvedType
Auto Trait Implementations§
impl Freeze for ResolvedType
impl RefUnwindSafe for ResolvedType
impl Send for ResolvedType
impl Sync for ResolvedType
impl Unpin for ResolvedType
impl UnsafeUnpin for ResolvedType
impl UnwindSafe for ResolvedType
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