pub trait Revset<'index>: Debug {
// Required methods
fn iter(&self) -> Box<dyn Iterator<Item = CommitId> + '_>;
fn commit_change_ids(
&self
) -> Box<dyn Iterator<Item = (CommitId, ChangeId)> + '_>;
fn iter_graph(
&self
) -> Box<dyn Iterator<Item = (CommitId, Vec<RevsetGraphEdge>)> + '_>;
fn change_id_index(&self) -> Box<dyn ChangeIdIndex + 'index>;
fn is_empty(&self) -> bool;
fn count(&self) -> usize;
}
Required Methods§
sourcefn iter(&self) -> Box<dyn Iterator<Item = CommitId> + '_>
fn iter(&self) -> Box<dyn Iterator<Item = CommitId> + '_>
Iterate in topological order with children before parents.
sourcefn commit_change_ids(
&self
) -> Box<dyn Iterator<Item = (CommitId, ChangeId)> + '_>
fn commit_change_ids( &self ) -> Box<dyn Iterator<Item = (CommitId, ChangeId)> + '_>
Iterates commit/change id pairs in topological order.