pub struct Platform<'repo> { /* private fields */ }
Expand description
A platform to traverse the revision graph by adding starting points as well as points which shouldn’t be crossed,
returned by Repository::rev_walk()
.
Implementations
sourceimpl<'repo> Platform<'repo>
impl<'repo> Platform<'repo>
Create-time builder methods
sourcepub fn sorting(self, sorting: Sorting) -> Self
pub fn sorting(self, sorting: Sorting) -> Self
Set the sort mode for commits to the given value. The default is to order by topology.
sourcepub fn first_parent_only(self) -> Self
pub fn first_parent_only(self) -> Self
Only traverse the first parent of the commit graph.
sourceimpl<'repo> Platform<'repo>
impl<'repo> Platform<'repo>
Produce the iterator
sourcepub fn all(self) -> Result<Walk<'repo>, Error>
pub fn all(self) -> Result<Walk<'repo>, Error>
Return an iterator to traverse all commits reachable as configured by the Platform.
Performance
It’s highly recommended to set an object cache
on the parent repo
to greatly speed up performance if the returned id is supposed to be looked up right after.
Auto Trait Implementations
impl<'repo> !RefUnwindSafe for Platform<'repo>
impl<'repo> !Send for Platform<'repo>
impl<'repo> !Sync for Platform<'repo>
impl<'repo> Unpin for Platform<'repo>
impl<'repo> !UnwindSafe for Platform<'repo>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more