[−][src]Module rusthg::ancestors
Bindings for the hg::ancestors
module provided by the
hg-core
crate. From Python, this will be seen as rustext.ancestor
and can be used as replacement for the the pure ancestor
Python module.
Classes visible from Python:
-
LazyAncestors
is the Rust implementation ofmercurial.ancestor.lazyancestors
. The only difference is that it is instantiated with a Cparsers.index
instance instead of a parents function. -
MissingAncestors
is the Rust implementation ofmercurial.ancestor.incrementalmissingancestors
.API differences:
- it is instantiated with a C
parsers.index
instance instead of a parents function. MissingAncestors.bases
is a method returning a tuple instead of a set-valued attribute. We could return a Python set easily if our PySet PR is accepted.
- it is instantiated with a C
-
AncestorsIterator
is the Rust counterpart of theancestor._lazyancestorsiter
Python generator. From Python, instances of this should be mainly obtained by callingiter()
on aLazyAncestors
instance.
Structs
AncestorsIterator | |
LazyAncestors | |
MissingAncestors |
Functions
init_module | Create the module, with package given from parent |