pub struct RevsetImpl<I> { /* private fields */ }
Implementations§
Source§impl<I: AsCompositeIndex + Clone> RevsetImpl<I>
impl<I: AsCompositeIndex + Clone> RevsetImpl<I>
pub fn iter_graph_impl( &self, skip_transitive_edges: bool, ) -> impl Iterator<Item = Result<GraphNode<CommitId>, RevsetEvaluationError>> + use<I>
Trait Implementations§
Source§impl<I> Debug for RevsetImpl<I>
impl<I> Debug for RevsetImpl<I>
Source§impl<I: AsCompositeIndex + Clone> Revset for RevsetImpl<I>
impl<I: AsCompositeIndex + Clone> Revset for RevsetImpl<I>
Source§fn iter<'a>(
&self,
) -> Box<dyn Iterator<Item = Result<CommitId, RevsetEvaluationError>> + 'a>where
Self: 'a,
fn iter<'a>(
&self,
) -> Box<dyn Iterator<Item = Result<CommitId, RevsetEvaluationError>> + 'a>where
Self: 'a,
Iterate in topological order with children before parents.
Source§fn commit_change_ids<'a>(
&self,
) -> Box<dyn Iterator<Item = Result<(CommitId, ChangeId), RevsetEvaluationError>> + 'a>where
Self: 'a,
fn commit_change_ids<'a>(
&self,
) -> Box<dyn Iterator<Item = Result<(CommitId, ChangeId), RevsetEvaluationError>> + 'a>where
Self: 'a,
Iterates commit/change id pairs in topological order.
fn iter_graph<'a>(
&self,
) -> Box<dyn Iterator<Item = Result<GraphNode<CommitId>, RevsetEvaluationError>> + 'a>where
Self: 'a,
Source§fn count_estimate(
&self,
) -> Result<(usize, Option<usize>), RevsetEvaluationError>
fn count_estimate( &self, ) -> Result<(usize, Option<usize>), RevsetEvaluationError>
Inclusive lower bound and, optionally, inclusive upper bound of how many
commits are in the revset. The implementation can use its discretion as
to how much effort should be put into the estimation, and how accurate
the resulting estimate should be.
Source§fn containing_fn<'a>(&self) -> Box<RevsetContainingFn<'a>>where
Self: 'a,
fn containing_fn<'a>(&self) -> Box<RevsetContainingFn<'a>>where
Self: 'a,
Returns a closure that checks if a commit is contained within the
revset. Read more
Auto Trait Implementations§
impl<I> Freeze for RevsetImpl<I>where
I: Freeze,
impl<I> !RefUnwindSafe for RevsetImpl<I>
impl<I> !Send for RevsetImpl<I>
impl<I> !Sync for RevsetImpl<I>
impl<I> Unpin for RevsetImpl<I>where
I: Unpin,
impl<I> !UnwindSafe for RevsetImpl<I>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more