pub struct ArtifactDependencyPathSegment { /* private fields */ }Expand description
One authored edge in a dependency path captured for an activity input.
Implementations§
Source§impl ArtifactDependencyPathSegment
impl ArtifactDependencyPathSegment
Sourcepub const fn source_representation_id(&self) -> RepresentationId
pub const fn source_representation_id(&self) -> RepresentationId
Returns the representation containing this edge.
Sourcepub const fn dependency_position(&self) -> u32
pub const fn dependency_position(&self) -> u32
Returns the edge’s position in its source dependency observation.
Sourcepub const fn source_resource_id(&self) -> Option<ResourceId>
pub const fn source_resource_id(&self) -> Option<ResourceId>
Returns the optional resource that authored the reference.
Sourcepub const fn kind(&self) -> &DependencyKind
pub const fn kind(&self) -> &DependencyKind
Returns the open-world dependency kind.
Sourcepub const fn target(&self) -> DependencyTarget
pub const fn target(&self) -> DependencyTarget
Returns the floating or pinned target.
Sourcepub const fn resolved_representation_id(&self) -> Option<RepresentationId>
pub const fn resolved_representation_id(&self) -> Option<RepresentationId>
Returns the representation selected for a floating target.
Returns the exact authored reference text.
Trait Implementations§
Source§impl Clone for ArtifactDependencyPathSegment
impl Clone for ArtifactDependencyPathSegment
Source§fn clone(&self) -> ArtifactDependencyPathSegment
fn clone(&self) -> ArtifactDependencyPathSegment
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 moreimpl Eq for ArtifactDependencyPathSegment
impl StructuralPartialEq for ArtifactDependencyPathSegment
Auto Trait Implementations§
impl Freeze for ArtifactDependencyPathSegment
impl RefUnwindSafe for ArtifactDependencyPathSegment
impl Send for ArtifactDependencyPathSegment
impl Sync for ArtifactDependencyPathSegment
impl Unpin for ArtifactDependencyPathSegment
impl UnsafeUnpin for ArtifactDependencyPathSegment
impl UnwindSafe for ArtifactDependencyPathSegment
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