pub struct GitAncestry<'a> {
pub root: &'a Path,
}Expand description
The Ancestry the executable uses: this repository’s own git, asked read-only.
use majordomus_cli::served::{Ancestry, GitAncestry};
use std::path::Path;
let git = GitAncestry { root: Path::new(env!("CARGO_MANIFEST_DIR")) };
assert_eq!(git.has(&"0".repeat(40)), Some(false));Fields§
§root: &'a PathThe checkout asked.
Trait Implementations§
Source§impl Ancestry for GitAncestry<'_>
impl Ancestry for GitAncestry<'_>
Auto Trait Implementations§
impl<'a> Freeze for GitAncestry<'a>
impl<'a> RefUnwindSafe for GitAncestry<'a>
impl<'a> Send for GitAncestry<'a>
impl<'a> Sync for GitAncestry<'a>
impl<'a> Unpin for GitAncestry<'a>
impl<'a> UnsafeUnpin for GitAncestry<'a>
impl<'a> UnwindSafe for GitAncestry<'a>
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