pub trait AncestorSet {
// Required method
fn contains(&mut self, sha: &str) -> Ancestry;
}Expand description
Answers “is sha an ancestor of (or equal to) this checkout’s head?”.
&mut so implementations can memoize.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".