pub struct BlameResult<'a, T> { /* private fields */ }
Expand description
The result of a blame operation, containing all lines with their origin information
Implementations§
Source§impl<'a, T> BlameResult<'a, T>
impl<'a, T> BlameResult<'a, T>
pub fn new(lines: Vec<BlameLine<'a, T>>) -> Self
pub fn lines(&self) -> &[BlameLine<'a, T>]
pub fn get_line(&self, index: usize) -> Option<&BlameLine<'a, T>>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = &BlameLine<'a, T>>
Trait Implementations§
Source§impl<'a, T: Clone> Clone for BlameResult<'a, T>
impl<'a, T: Clone> Clone for BlameResult<'a, T>
Source§fn clone(&self) -> BlameResult<'a, T>
fn clone(&self) -> BlameResult<'a, T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a, T: Debug> Debug for BlameResult<'a, T>
impl<'a, T: Debug> Debug for BlameResult<'a, T>
Source§impl<'a, T> IntoIterator for BlameResult<'a, T>
impl<'a, T> IntoIterator for BlameResult<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for BlameResult<'a, T>
impl<'a, T> RefUnwindSafe for BlameResult<'a, T>where
T: RefUnwindSafe,
impl<'a, T> !Send for BlameResult<'a, T>
impl<'a, T> !Sync for BlameResult<'a, T>
impl<'a, T> Unpin for BlameResult<'a, T>
impl<'a, T> UnwindSafe for BlameResult<'a, T>where
T: RefUnwindSafe,
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