pub struct ApplyForecast {
pub paths: BTreeMap<RelativePath, PathApplyOutcome>,
}Expand description
Per-path apply prediction for one (commit, series) row, computed
from the target tree. Present exactly when a target context was
supplied.
Fields§
§paths: BTreeMap<RelativePath, PathApplyOutcome>Every assessed touched path, including ones absent on the
target (Conflict { FileAbsent }).
Implementations§
Source§impl ApplyForecast
impl ApplyForecast
Sourcepub fn record(&mut self, path: RelativePath, outcome: PathApplyOutcome)
pub fn record(&mut self, path: RelativePath, outcome: PathApplyOutcome)
Record one observation of path, folding into any prior
observation at max severity.
pub fn has_conflict(&self) -> bool
Sourcepub fn conflicts(
&self,
) -> impl Iterator<Item = (&RelativePath, ApplyConflictKind)>
pub fn conflicts( &self, ) -> impl Iterator<Item = (&RelativePath, ApplyConflictKind)>
Every conflicting path with its conflict kind.
pub fn summary(&self) -> ApplySummary
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for ApplyForecast
impl Clone for ApplyForecast
Source§impl Debug for ApplyForecast
impl Debug for ApplyForecast
Source§impl Default for ApplyForecast
impl Default for ApplyForecast
Source§impl<'de> Deserialize<'de> for ApplyForecast
impl<'de> Deserialize<'de> for ApplyForecast
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ApplyForecast
Source§impl PartialEq for ApplyForecast
impl PartialEq for ApplyForecast
Source§impl Serialize for ApplyForecast
impl Serialize for ApplyForecast
impl StructuralPartialEq for ApplyForecast
Auto Trait Implementations§
impl Forget for ApplyForecast
impl Freeze for ApplyForecast
impl Move for ApplyForecast
impl RefUnwindSafe for ApplyForecast
impl Send for ApplyForecast
impl Sync for ApplyForecast
impl Unpin for ApplyForecast
impl UnsafeUnpin for ApplyForecast
impl UnwindSafe for ApplyForecast
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