pub struct OwnsFact { /* private fields */ }Expand description
A direct ownership fact.
Implementations§
Source§impl OwnsFact
impl OwnsFact
Sourcepub const fn new(id: OwnsFactId) -> Self
pub const fn new(id: OwnsFactId) -> Self
Construct an unordered ownership fact.
Sourcepub const fn new_with_collection_mode(
id: OwnsFactId,
collection_mode: CollectionMode,
) -> Self
pub const fn new_with_collection_mode( id: OwnsFactId, collection_mode: CollectionMode, ) -> Self
Construct an ownership fact with explicit collection semantics.
Sourcepub const fn with_collection_mode(self, collection_mode: CollectionMode) -> Self
pub const fn with_collection_mode(self, collection_mode: CollectionMode) -> Self
Replace this fact’s collection semantics without changing its identity.
Sourcepub const fn id(&self) -> &OwnsFactId
pub const fn id(&self) -> &OwnsFactId
Return the fact identity.
Sourcepub const fn collection_mode(&self) -> CollectionMode
pub const fn collection_mode(&self) -> CollectionMode
Return the canonical collection semantics.
Trait Implementations§
impl Eq for OwnsFact
impl StructuralPartialEq for OwnsFact
Auto Trait Implementations§
impl Freeze for OwnsFact
impl RefUnwindSafe for OwnsFact
impl Send for OwnsFact
impl Sync for OwnsFact
impl Unpin for OwnsFact
impl UnsafeUnpin for OwnsFact
impl UnwindSafe for OwnsFact
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