pub struct Outcome {
pub entries: Vec<BlameEntry>,
pub blob: Vec<u8>,
pub statistics: Statistics,
}
Expand description
The outcome of file()
.
Fields§
§entries: Vec<BlameEntry>
One entry in sequential order, to associate a hunk in the blamed file with the source commit (and its lines) that introduced it.
blob: Vec<u8>
A buffer with the file content of the Blamed File, ready for tokenization.
statistics: Statistics
Additional information about the amount of work performed to produce the blame.
Implementations§
Source§impl Outcome
impl Outcome
Sourcepub fn entries_with_lines(
&self,
) -> impl Iterator<Item = (BlameEntry, Vec<BString>)> + '_
pub fn entries_with_lines( &self, ) -> impl Iterator<Item = (BlameEntry, Vec<BString>)> + '_
Return an iterator over each entry in Self::entries
, along with its lines, line by line.
Note that Self::blob
must be tokenized in exactly the same way as the tokenizer that was used
to perform the diffs, which is what this method assures.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnwindSafe for Outcome
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