Enum git2::ObjectType
[−]
[src]
pub enum ObjectType {
Any,
Commit,
Tree,
Blob,
Tag,
}An enumeration all possible kinds objects may have.
Variants
AnyAny kind of git object
CommitAn object which corresponds to a git commit
TreeAn object which corresponds to a git tree
BlobAn object which corresponds to a git blob
TagAn object which corresponds to a git tag
Methods
impl ObjectType[src]
fn str(&self) -> &'static str[src]
Convert an object type to its string representation.
fn is_loose(&self) -> bool[src]
Determine if the given git_otype is a valid loose object type.
fn from_raw(raw: git_otype) -> Option<ObjectType>[src]
Convert a raw git_otype to an ObjectType
fn raw(&self) -> git_otype[src]
Convert this kind into its raw representation
fn from_str(s: &str) -> Option<ObjectType>[src]
Convert a string object type representation to its object type.
Trait Implementations
impl PartialEq for ObjectType[src]
fn eq(&self, __arg_0: &ObjectType) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Eq for ObjectType[src]
impl Copy for ObjectType[src]
impl Clone for ObjectType[src]
fn clone(&self) -> ObjectType[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more