[][src]Struct hg_parser::Revision

pub struct Revision(pub u32);

Mercurial revision's index.

Methods

impl Revision[src]

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

Return iterator for a range from index to lim.

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

Return an open ended iterator from index.

Trait Implementations

impl From<u32> for Revision[src]

impl From<Revision> for usize[src]

impl PartialEq<Revision> for Revision[src]

impl Clone for Revision[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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 PartialOrd<Revision> for Revision[src]

impl Eq for Revision[src]

impl Ord for Revision[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl Copy for Revision[src]

impl Debug for Revision[src]

impl Add<u32> for Revision[src]

type Output = Self

The resulting type after applying the + operator.

impl Sub<u32> for Revision[src]

type Output = Self

The resulting type after applying the - operator.

impl Hash for Revision[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self