pub struct DependencySet { /* private fields */ }Expand description
One complete ordered observation of a representation’s dependencies.
Implementations§
Source§impl DependencySet
impl DependencySet
Sourcepub fn new(
source_representation_id: RepresentationId,
recorded_at_revision: u64,
status: DependencySetStatus,
dependencies: Vec<Dependency>,
) -> Result<Self>
pub fn new( source_representation_id: RepresentationId, recorded_at_revision: u64, status: DependencySetStatus, dependencies: Vec<Dependency>, ) -> Result<Self>
Reconstructs a bounded dependency-set observation.
§Errors
Returns an invalid-argument error for revision zero or too many edges.
Sourcepub const fn source_representation_id(&self) -> RepresentationId
pub const fn source_representation_id(&self) -> RepresentationId
Returns the representation whose content supplied the set.
Sourcepub const fn recorded_at_revision(&self) -> u64
pub const fn recorded_at_revision(&self) -> u64
Returns the revision that committed this complete set.
Sourcepub const fn status(&self) -> DependencySetStatus
pub const fn status(&self) -> DependencySetStatus
Returns whether the set needs extraction after a source change.
Sourcepub fn dependencies(&self) -> &[Dependency]
pub fn dependencies(&self) -> &[Dependency]
Returns dependency occurrences in authored order.
Trait Implementations§
Source§impl Clone for DependencySet
impl Clone for DependencySet
Source§fn clone(&self) -> DependencySet
fn clone(&self) -> DependencySet
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 DependencySet
impl Debug for DependencySet
impl Eq for DependencySet
Source§impl PartialEq for DependencySet
impl PartialEq for DependencySet
impl StructuralPartialEq for DependencySet
Auto Trait Implementations§
impl Freeze for DependencySet
impl RefUnwindSafe for DependencySet
impl Send for DependencySet
impl Sync for DependencySet
impl Unpin for DependencySet
impl UnsafeUnpin for DependencySet
impl UnwindSafe for DependencySet
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