Struct git_odb::Sink

source ·
pub struct Sink { /* private fields */ }
Expand description

It can optionally compress the content, similarly to what would happen when using a loose::Store.

Implementations

Enable or disable compression. Compression is disabled by default

Trait Implementations

The error type used for all trait methods. Read more
As write, but takes an input stream. This is commonly used for writing blobs directly without reading them to memory first. Read more
Write objects using the intrinsic kind of hash into the database, returning id to reference it in subsequent reads. Read more
As write, but takes an object kind along with its encoded bytes.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.