pub struct Platform<'r> { /* private fields */ }
Expand description

A platform to create iterators over references.

Implementations

Return an iterator over all references in the repository.

Even broken or otherwise unparsible or inaccessible references are returned and have to be handled by the caller on a case by case basis.

Return an iterator over all references that match the given prefix.

These are of the form refs/heads or refs/remotes/origin, and must not contain relative paths components like . or ...

Return an iterator over all references that are tags.

They are all prefixed with refs/tags.

Return an iterator over all local branches.

They are all prefixed with refs/heads.

Return an iterator over all remote branches.

They are all prefixed with refs/remotes.

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.