[−][src]Struct hg_parser::Revision
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.
fn add(self, other: u32) -> Self
[src]
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]
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<'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 Ord for Revision
[src]
fn cmp(&self, other: &Revision) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]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 StructuralEq for Revision
[src]
impl StructuralPartialEq for Revision
[src]
impl Sub<u32> for Revision
[src]
Auto Trait Implementations
impl RefUnwindSafe for Revision
impl Send for Revision
impl Sync for Revision
impl Unpin for Revision
impl UnwindSafe for Revision
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> Same<T> for T
type Output = T
Should always be Self
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>,