Enum git2::ObjectType [−][src]
pub enum ObjectType { Any, Commit, Tree, Blob, Tag, }
Expand description
An enumeration all possible kinds objects may have.
Variants
Expand description
Any kind of git object
Expand description
An object which corresponds to a git commit
Expand description
An object which corresponds to a git tree
Expand description
An object which corresponds to a git blob
Expand description
An object which corresponds to a git tag
Implementations
impl ObjectType
[src]
impl ObjectType
[src]pub fn is_loose(&self) -> bool
[src]
pub fn is_loose(&self) -> bool
[src]Determine if the given git_object_t is a valid loose object type.
pub fn from_raw(raw: git_object_t) -> Option<ObjectType>
[src]
pub fn from_raw(raw: git_object_t) -> Option<ObjectType>
[src]Convert a raw git_object_t to an ObjectType
pub fn raw(&self) -> git_object_t
[src]
pub fn raw(&self) -> git_object_t
[src]Convert this kind into its raw representation
pub fn from_str(s: &str) -> Option<ObjectType>
[src]
pub fn from_str(s: &str) -> Option<ObjectType>
[src]Convert a string object type representation to its object type.
Trait Implementations
impl Clone for ObjectType
[src]
impl Clone for ObjectType
[src]fn clone(&self) -> 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]
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
[src]impl Display for ObjectType
[src]
impl Display for ObjectType
[src]impl PartialEq<ObjectType> for ObjectType
[src]
impl PartialEq<ObjectType> for ObjectType
[src]impl Copy for ObjectType
[src]
impl Eq for ObjectType
[src]
impl StructuralEq for ObjectType
[src]
impl StructuralPartialEq for ObjectType
[src]
Auto Trait Implementations
impl RefUnwindSafe for ObjectType
impl Send for ObjectType
impl Sync for ObjectType
impl Unpin for ObjectType
impl UnwindSafe for ObjectType
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more