[−][src]Struct hg_parser::Revision
Mercurial revision's index.
Methods
impl Revision[src]
ⓘImportant traits for RevisionRangepub fn range_to(self, lim: Self) -> RevisionRange[src]
ⓘImportant traits for RevisionRange
Return iterator for a range from index to lim.
ⓘImportant traits for RevisionRangepub fn range(self) -> RevisionRange[src]
ⓘImportant traits for RevisionRange
Return an open ended iterator from index.
Trait Implementations
impl From<u32> for Revision[src]
impl From<Revision> for usize[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?
fn into_iter(self) -> Self::IntoIter[src]
impl Clone for Revision[src]
impl Copy for Revision[src]
impl Eq for Revision[src]
impl Ord for Revision[src]
fn cmp(&self, other: &Revision) -> Ordering[src]
fn max(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> Self1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<Revision> for Revision[src]
impl PartialOrd<Revision> for Revision[src]
fn partial_cmp(&self, other: &Revision) -> Option<Ordering>[src]
fn lt(&self, other: &Revision) -> bool[src]
fn le(&self, other: &Revision) -> bool[src]
fn gt(&self, other: &Revision) -> bool[src]
fn ge(&self, other: &Revision) -> bool[src]
impl Debug for Revision[src]
impl Sub<u32> for Revision[src]
type Output = Self
The resulting type after applying the - operator.
fn sub(self, other: u32) -> Self[src]
impl Add<u32> for Revision[src]
type Output = Self
The resulting type after applying the + operator.
fn add(self, other: u32) -> Self[src]
impl Hash for Revision[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl StructuralPartialEq for Revision[src]
impl StructuralEq for Revision[src]
Auto Trait Implementations
impl Send for Revision
impl Sync for Revision
impl Unpin for Revision
impl UnwindSafe for Revision
impl RefUnwindSafe for Revision
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
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, 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self