Struct git2::Tree[][src]

pub struct Tree<'repo> { /* fields omitted */ }

A structure to represent a git tree

Methods

impl<'repo> Tree<'repo>
[src]

Get the id (SHA1) of a repository object

Get the number of entries listed in this tree.

Return true if there is not entry

Important traits for TreeIter<'tree>

Returns an iterator over the entries in this tree.

Lookup a tree entry by SHA value.

Lookup a tree entry by its position in the tree

Lookup a tree entry by its filename

Retrieve a tree entry contained in a tree or in any of its subtrees, given its relative path.

Casts this Tree to be usable as an Object

Consumes Commit to be returned as an Object

Trait Implementations

impl<'repo> Debug for Tree<'repo>
[src]

Formats the value using the given formatter. Read more

impl<'repo> Clone for Tree<'repo>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'repo> Drop for Tree<'repo>
[src]

Executes the destructor for this type. Read more

impl<'repo, 'iter> IntoIterator for &'iter Tree<'repo>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Auto Trait Implementations

impl<'repo> !Send for Tree<'repo>

impl<'repo> !Sync for Tree<'repo>