Enum git2::ObjectType [] [src]

pub enum ObjectType {
    Any,
    Commit,
    Tree,
    Blob,
    Tag,
}

An enumeration all possible kinds objects may have.

Variants

Any kind of git object

An object which corresponds to a git commit

An object which corresponds to a git tree

An object which corresponds to a git blob

An object which corresponds to a git tag

Methods

impl ObjectType
[src]

[src]

Convert an object type to its string representation.

[src]

Determine if the given git_otype is a valid loose object type.

[src]

Convert a raw git_otype to an ObjectType

[src]

Convert this kind into its raw representation

[src]

Convert a string object type representation to its object type.

Trait Implementations

impl PartialEq for ObjectType
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for ObjectType
[src]

impl Copy for ObjectType
[src]

impl Clone for ObjectType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ObjectType
[src]

[src]

Formats the value using the given formatter.

impl Display for ObjectType
[src]

[src]

Formats the value using the given formatter. Read more