pub struct RelationDependencyKey { /* private fields */ }Expand description
One canonical dependency identity bound to its owning logical relation.
Implementations§
Source§impl RelationDependencyKey
impl RelationDependencyKey
Sourcepub fn new(
relation: LogicalRelationKey,
key: CanonicalResolutionKey,
) -> Result<Self, GraphContractError>
pub fn new( relation: LogicalRelationKey, key: CanonicalResolutionKey, ) -> Result<Self, GraphContractError>
Bind one dependency identity to its logical relation.
§Errors
Returns an error when the relation and key belong to different projects.
Sourcepub const fn relation(&self) -> &LogicalRelationKey
pub const fn relation(&self) -> &LogicalRelationKey
Borrow the owning logical-relation key.
Sourcepub const fn key(&self) -> &CanonicalResolutionKey
pub const fn key(&self) -> &CanonicalResolutionKey
Borrow the canonical resolver key.
Trait Implementations§
Source§impl Clone for RelationDependencyKey
impl Clone for RelationDependencyKey
Source§fn clone(&self) -> RelationDependencyKey
fn clone(&self) -> RelationDependencyKey
Returns a duplicate of the value. Read more
1.0.0 · 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 RelationDependencyKey
impl Debug for RelationDependencyKey
Source§impl PartialEq for RelationDependencyKey
impl PartialEq for RelationDependencyKey
Source§impl Serialize for RelationDependencyKey
impl Serialize for RelationDependencyKey
impl Eq for RelationDependencyKey
impl StructuralPartialEq for RelationDependencyKey
Auto Trait Implementations§
impl Freeze for RelationDependencyKey
impl RefUnwindSafe for RelationDependencyKey
impl Send for RelationDependencyKey
impl Sync for RelationDependencyKey
impl Unpin for RelationDependencyKey
impl UnwindSafe for RelationDependencyKey
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.