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

Create-time builder methods

Set the sort mode for commits to the given value. The default is to order by topology.

Only traverse the first parent of the commit graph.

Produce the iterator

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

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.