pub struct EffectiveOwns { /* private fields */ }Expand description
Effective ownership, including resolved constraints and direct origin.
Implementations§
Source§impl EffectiveOwns
impl EffectiveOwns
Sourcepub const fn id(&self) -> &OwnsFactId
pub const fn id(&self) -> &OwnsFactId
Return the effective ownership identity for the resolved owner.
Sourcepub const fn origin(&self) -> &ResolutionOrigin
pub const fn origin(&self) -> &ResolutionOrigin
Return its direct declaration origin.
Sourcepub const fn collection_mode(&self) -> CollectionMode
pub const fn collection_mode(&self) -> CollectionMode
Return the effective collection semantics.
Sourcepub fn is_distinct(&self) -> bool
pub fn is_distinct(&self) -> bool
Report whether members must be distinct within the ordered collection.
Sourcepub const fn annotations(
&self,
) -> &BTreeMap<AnnotationKindId, SchemaAnnotationValue>
pub const fn annotations( &self, ) -> &BTreeMap<AnnotationKindId, SchemaAnnotationValue>
Return all direct or inherited annotations keyed by independent kind.
Sourcepub const fn cardinality(&self) -> Cardinality
pub const fn cardinality(&self) -> Cardinality
Return explicit or profile-materialized cardinality.
Trait Implementations§
Source§impl Clone for EffectiveOwns
impl Clone for EffectiveOwns
Source§fn clone(&self) -> EffectiveOwns
fn clone(&self) -> EffectiveOwns
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 EffectiveOwns
impl Debug for EffectiveOwns
impl Eq for EffectiveOwns
Source§impl PartialEq for EffectiveOwns
impl PartialEq for EffectiveOwns
impl StructuralPartialEq for EffectiveOwns
Auto Trait Implementations§
impl Freeze for EffectiveOwns
impl RefUnwindSafe for EffectiveOwns
impl Send for EffectiveOwns
impl Sync for EffectiveOwns
impl Unpin for EffectiveOwns
impl UnsafeUnpin for EffectiveOwns
impl UnwindSafe for EffectiveOwns
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