[][src]Struct hg_parser::Revision

pub struct Revision(pub u32);

Mercurial revision's index.

Methods

impl Revision[src]

pub fn range_to(self, lim: Self) -> RevisionRange[src]

Return iterator for a range from index to lim.

pub fn range(self) -> RevisionRange[src]

Return an open ended iterator from index.

Trait Implementations

impl Add<u32> for Revision[src]

type Output = Self

The resulting type after applying the + operator.

impl Clone for Revision[src]

impl Copy for Revision[src]

impl Debug for Revision[src]

impl Eq for Revision[src]

impl From<Revision> for usize[src]

impl From<u32> for Revision[src]

impl Hash for Revision[src]

impl<'a> IntoIterator for &'a Revision[src]

Convert a Revision into an iterator of Revision values starting at Revision's value. ie, Revision(2).into_iter() => Revision(2), Revision(3), ...

type Item = Revision

The type of the elements being iterated over.

type IntoIter = RevisionRange

Which kind of iterator are we turning this into?

impl Ord for Revision[src]

impl PartialEq<Revision> for Revision[src]

impl PartialOrd<Revision> for Revision[src]

impl StructuralEq for Revision[src]

impl StructuralPartialEq for Revision[src]

impl Sub<u32> for Revision[src]

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.