Skip to main content

AncestorSet

Trait AncestorSet 

Source
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§

Source

fn contains(&mut self, sha: &str) -> Ancestry

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<A: AncestorSet + ?Sized> AncestorSet for &mut A

Source§

fn contains(&mut self, sha: &str) -> Ancestry

Implementors§