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]
impl ObjectTypepub fn str(&self) -> &'static str[src]
pub fn str(&self) -> &'static strConvert an object type to its string representation.
pub fn is_loose(&self) -> bool[src]
pub fn is_loose(&self) -> boolDetermine if the given git_otype is a valid loose object type.
pub fn from_raw(raw: git_otype) -> Option<ObjectType>[src]
pub fn from_raw(raw: git_otype) -> Option<ObjectType>Convert a raw git_otype to an ObjectType
pub fn raw(&self) -> git_otype[src]
pub fn raw(&self) -> git_otypeConvert this kind into its raw representation
pub fn from_str(s: &str) -> Option<ObjectType>[src]
pub fn from_str(s: &str) -> Option<ObjectType>Convert a string object type representation to its object type.
Trait Implementations
impl PartialEq for ObjectType[src]
impl PartialEq for ObjectTypefn eq(&self, other: &ObjectType) -> bool[src]
fn eq(&self, other: &ObjectType) -> boolThis 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]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for ObjectType[src]
impl Eq for ObjectTypeimpl Copy for ObjectType[src]
impl Copy for ObjectTypeimpl Clone for ObjectType[src]
impl Clone for ObjectTypefn clone(&self) -> ObjectType[src]
fn clone(&self) -> ObjectTypeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for ObjectType[src]
impl Debug for ObjectTypefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for ObjectType[src]
impl Display for ObjectTypeAuto Trait Implementations
impl Send for ObjectType
impl Send for ObjectTypeimpl Sync for ObjectType
impl Sync for ObjectType