Struct git_repository::easy::ObjectRef [−][src]
pub struct ObjectRef<'repo, A> {
pub id: ObjectId,
pub kind: Kind,
pub data: Ref<'repo, [u8]>,
// some fields omitted
}
Expand description
A decoded object with a reference to its owning repository.
Limitations
Note that it holds a reference to a buffer of it’s associated repository handle, so there can only be one at a time, per handle.
Fields
id: ObjectId
The id of the object
kind: Kind
The kind of the object
data: Ref<'repo, [u8]>
The fully decoded object data
Implementations
Trait Implementations
Auto Trait Implementations
impl<'repo, A> !RefUnwindSafe for ObjectRef<'repo, A>
impl<'repo, A> !UnwindSafe for ObjectRef<'repo, A>
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self