Struct GitEngine

Source
pub struct GitEngine<'repo> { /* private fields */ }

Implementations§

Source§

impl<'repo> GitEngine<'repo>

Source

pub fn new( repository: &'repo Repository, from_ref: Option<&str>, to_ref: Option<&str>, ) -> impl Engine + 'repo

Trait Implementations§

Source§

impl Engine for GitEngine<'_>

Source§

fn matches( &self, patterns: impl IntoIterator<Item = impl AsRef<Path>>, ) -> impl Iterator<Item = Result<PathBuf, PathBuf>>

Iterate over changed files that match the given patterns and patterns that don’t match any file. Read more
Source§

fn resolve(&self, path: impl AsRef<Path>) -> PathBuf

Resolve a path to an absolute path.
Source§

fn is_ignored(&self, path: impl AsRef<Path>) -> bool

Check if a file has been ignored.
Source§

fn is_range_modified( &self, path: impl AsRef<Path>, range: (usize, usize), ) -> bool

Check if a range of lines in a file has been modified.
Source§

fn check(&self, path: impl AsRef<Path>) -> Result<(), Vec<String>>

Check a file for dependent changes.

Auto Trait Implementations§

§

impl<'repo> Freeze for GitEngine<'repo>

§

impl<'repo> RefUnwindSafe for GitEngine<'repo>

§

impl<'repo> !Send for GitEngine<'repo>

§

impl<'repo> !Sync for GitEngine<'repo>

§

impl<'repo> Unpin for GitEngine<'repo>

§

impl<'repo> UnwindSafe for GitEngine<'repo>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,