Enum git2::ObjectType [−][src]
pub enum ObjectType { Any, Commit, Tree, Blob, Tag, }
An enumeration all possible kinds objects may have.
Variants
Any
Any kind of git object
Commit
An object which corresponds to a git commit
Tree
An object which corresponds to a git tree
Blob
An object which corresponds to a git blob
Tag
An object which corresponds to a git tag
Methods
impl ObjectType
[src]
impl ObjectType
pub fn str(&self) -> &'static str
[src]
pub fn str(&self) -> &'static str
Convert an object type to its string representation.
pub fn is_loose(&self) -> bool
[src]
pub fn is_loose(&self) -> bool
Determine 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_otype
Convert 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 ObjectType
fn eq(&self, other: &ObjectType) -> bool
[src]
fn eq(&self, other: &ObjectType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for ObjectType
[src]
impl Eq for ObjectType
impl Copy for ObjectType
[src]
impl Copy for ObjectType
impl Clone for ObjectType
[src]
impl Clone for ObjectType
fn clone(&self) -> ObjectType
[src]
fn clone(&self) -> ObjectType
Returns 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 ObjectType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for ObjectType
[src]
impl Display for ObjectType
Auto Trait Implementations
impl Send for ObjectType
impl Send for ObjectType
impl Sync for ObjectType
impl Sync for ObjectType