pub trait RangeResolver {
// Required methods
fn merge_base(&self, a: &str, b: &str) -> Result<String, EngineError>;
fn resolve_endpoint(&self, rev: &str) -> Result<String, EngineError>;
}Expand description
Turning what the user typed into diff endpoints. Consumed only by
pipeline: nothing downstream of resolution ever re-resolves.
Required Methods§
fn merge_base(&self, a: &str, b: &str) -> Result<String, EngineError>
Sourcefn resolve_endpoint(&self, rev: &str) -> Result<String, EngineError>
fn resolve_endpoint(&self, rev: &str) -> Result<String, EngineError>
Resolve to a commit sha, or accept a raw tree oid.
The endpoints of an uncommitted-state review are synthesized trees (ADR 0017) and every later stage is tree-safe.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".