pub struct ArtifactEvaluation { /* private fields */ }Expand description
Complete, explainable result of evaluating one produced representation.
Implementations§
Source§impl ArtifactEvaluation
impl ArtifactEvaluation
Sourcepub fn new(
representation_id: RepresentationId,
state: ArtifactKnowledgeState,
reasons: Vec<ArtifactKnowledgeReason>,
visited_representations: u32,
truncated: bool,
) -> Self
pub fn new( representation_id: RepresentationId, state: ArtifactKnowledgeState, reasons: Vec<ArtifactKnowledgeReason>, visited_representations: u32, truncated: bool, ) -> Self
Creates a backend-computed evaluation result.
Sourcepub const fn representation_id(&self) -> RepresentationId
pub const fn representation_id(&self) -> RepresentationId
Returns the representation that was evaluated.
Sourcepub const fn state(&self) -> ArtifactKnowledgeState
pub const fn state(&self) -> ArtifactKnowledgeState
Returns the derived knowledge state.
Sourcepub fn reasons(&self) -> &[ArtifactKnowledgeReason]
pub fn reasons(&self) -> &[ArtifactKnowledgeReason]
Returns stable, user-explainable reasons for a non-current result.
Sourcepub const fn visited_representations(&self) -> u32
pub const fn visited_representations(&self) -> u32
Returns how many distinct representations were inspected.
Sourcepub const fn is_truncated(&self) -> bool
pub const fn is_truncated(&self) -> bool
Returns whether an explicit traversal bound stopped evaluation.
Trait Implementations§
Source§impl Clone for ArtifactEvaluation
impl Clone for ArtifactEvaluation
Source§fn clone(&self) -> ArtifactEvaluation
fn clone(&self) -> ArtifactEvaluation
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 ArtifactEvaluation
impl Debug for ArtifactEvaluation
impl Eq for ArtifactEvaluation
Source§impl PartialEq for ArtifactEvaluation
impl PartialEq for ArtifactEvaluation
impl StructuralPartialEq for ArtifactEvaluation
Auto Trait Implementations§
impl Freeze for ArtifactEvaluation
impl RefUnwindSafe for ArtifactEvaluation
impl Send for ArtifactEvaluation
impl Sync for ArtifactEvaluation
impl Unpin for ArtifactEvaluation
impl UnsafeUnpin for ArtifactEvaluation
impl UnwindSafe for ArtifactEvaluation
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