[−][src]Struct diffy::HunkRange
The range of lines in a file for a particular Hunk
.
Implementations
impl HunkRange
[src]
pub fn range(&self) -> Range<usize>
[src]
Returns the range as a ops::Range
pub fn start(&self) -> usize
[src]
Returns the starting line number of the range (inclusive)
pub fn end(&self) -> usize
[src]
Returns the ending line number of the range (exclusive)
pub fn len(&self) -> usize
[src]
Returns the number of lines in the range
pub fn is_empty(&self) -> bool
[src]
Returns true
if the range is empty (has a length of 0
)
Trait Implementations
impl Clone for HunkRange
[src]
impl Copy for HunkRange
[src]
impl Debug for HunkRange
[src]
impl Display for HunkRange
[src]
impl Eq for HunkRange
[src]
impl PartialEq<HunkRange> for HunkRange
[src]
impl StructuralEq for HunkRange
[src]
impl StructuralPartialEq for HunkRange
[src]
Auto Trait Implementations
impl RefUnwindSafe for HunkRange
impl Send for HunkRange
impl Sync for HunkRange
impl Unpin for HunkRange
impl UnwindSafe for HunkRange
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,