pub struct OwnsFactId { /* private fields */ }Expand description
Identity of a direct ownership declaration.
Implementations§
Source§impl OwnsFactId
impl OwnsFactId
Sourcepub fn new(owner: TypeId, attribute: AttributeId) -> Result<Self, Diagnostic>
pub fn new(owner: TypeId, attribute: AttributeId) -> Result<Self, Diagnostic>
Construct an ownership identity.
Sourcepub const fn attribute(&self) -> &AttributeId
pub const fn attribute(&self) -> &AttributeId
Return the owned attribute.
Trait Implementations§
Source§impl Clone for OwnsFactId
impl Clone for OwnsFactId
Source§impl Debug for OwnsFactId
impl Debug for OwnsFactId
impl Eq for OwnsFactId
Source§impl Hash for OwnsFactId
impl Hash for OwnsFactId
Source§impl Ord for OwnsFactId
impl Ord for OwnsFactId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for OwnsFactId
impl PartialEq for OwnsFactId
Source§impl PartialOrd for OwnsFactId
impl PartialOrd for OwnsFactId
Source§impl Serialize for OwnsFactId
impl Serialize for OwnsFactId
impl StructuralPartialEq for OwnsFactId
Auto Trait Implementations§
impl Freeze for OwnsFactId
impl RefUnwindSafe for OwnsFactId
impl Send for OwnsFactId
impl Sync for OwnsFactId
impl Unpin for OwnsFactId
impl UnsafeUnpin for OwnsFactId
impl UnwindSafe for OwnsFactId
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