Struct git_odb::sink::Sink[][src]

pub struct Sink { /* fields omitted */ }
Expand description

An object database equivalent to /dev/null, dropping all objects stored into it.

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 object using the given 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

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. 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.