Enum git2::ObjectType [−][src]
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
Implementations
impl ObjectType
[src]
pub fn str(&self) -> &'static str
[src]
Convert an object type to its string representation.
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]
Convert a raw git_object_t to an ObjectType
pub fn raw(&self) -> git_object_t
[src]
Convert this kind into its raw representation
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]
fn clone(&self) -> ObjectType
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ObjectType
[src]
impl Debug for ObjectType
[src]
impl Display for ObjectType
[src]
impl Eq for ObjectType
[src]
impl PartialEq<ObjectType> for ObjectType
[src]
fn eq(&self, other: &ObjectType) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,