pub struct Change<'a> {
pub path: &'a str,
pub added: &'a [(usize, String)],
pub blocks: &'a [Block],
}Expand description
One file a change writes, as the checks see it.
Fields§
§path: &'a strThe path in the repository, /-separated.
added: &'a [(usize, String)]Each added line with its number in the new file.
blocks: &'a [Block]The blocks of the change; a file with none is checked by its added lines alone.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Change<'a>
impl<'a> Freeze for Change<'a>
impl<'a> RefUnwindSafe for Change<'a>
impl<'a> Send for Change<'a>
impl<'a> Sync for Change<'a>
impl<'a> Unpin for Change<'a>
impl<'a> UnsafeUnpin for Change<'a>
impl<'a> UnwindSafe for Change<'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