[][src]Struct memora::git::Object

pub struct Object<'a> {
    pub oid: Oid,
    pub repo: &'a Repo,
}

A Git object.

Fields

oid: Oidrepo: &'a Repo

Implementations

impl<'a> Object<'a>[src]

pub fn new(oid: Oid, repo: &'a Repo) -> Object<'a>[src]

pub fn is_ancestor_of(&self, obj: &Object) -> bool[src]

pub fn is_descendant_of(&self, obj: &Object) -> bool[src]

pub fn path_is_same_as(&self, ancestor: &Object, path: &Path) -> bool[src]

Trait Implementations

impl<'a> Clone for Object<'a>[src]

impl<'a> Debug for Object<'a>[src]

impl<'a> Display for Object<'a>[src]

impl<'a> Eq for Object<'a>[src]

impl<'a> Hash for Object<'a>[src]

impl<'a> PartialEq<Object<'a>> for Object<'a>[src]

impl<'a> PartialOrd<Object<'a>> for Object<'a>[src]

impl<'a> StructuralEq for Object<'a>[src]

impl<'a> StructuralPartialEq for Object<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Object<'a>

impl<'a> !Send for Object<'a>

impl<'a> !Sync for Object<'a>

impl<'a> Unpin for Object<'a>

impl<'a> !UnwindSafe for Object<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.