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

Performs the conversion.

Formats the value using the given formatter. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

Encode the hex strict representing self into the result. Lower case letters are used (e.g. f9b4ca) Read more

Encode the hex strict representing self into the result. Upper case letters are used (e.g. F9B4CA) Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.