rust/hg-cpython/src/conversion.rs
changeset 49749 c7fb9b74e753
parent 43269 33fe96a5c522
child 50990 4c5f6e95df84
equal deleted inserted replaced
49748:1b6be761c23d 49749:c7fb9b74e753
     8 //! Bindings for the hg::ancestors module provided by the
     8 //! Bindings for the hg::ancestors module provided by the
     9 //! `hg-core` crate. From Python, this will be seen as `rustext.ancestor`
     9 //! `hg-core` crate. From Python, this will be seen as `rustext.ancestor`
    10 
    10 
    11 use cpython::{ObjectProtocol, PyObject, PyResult, Python};
    11 use cpython::{ObjectProtocol, PyObject, PyResult, Python};
    12 use hg::Revision;
    12 use hg::Revision;
    13 use std::iter::FromIterator;
       
    14 
    13 
    15 /// Utility function to convert a Python iterable into various collections
    14 /// Utility function to convert a Python iterable into various collections
    16 ///
    15 ///
    17 /// We need this in particular to feed to various methods of inner objects
    16 /// We need this in particular to feed to various methods of inner objects
    18 /// with `impl IntoIterator<Item=Revision>` arguments, because
    17 /// with `impl IntoIterator<Item=Revision>` arguments, because