Struct git2::Buf[][src]

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

A structure to wrap an intermediate buffer used by libgit2.

A buffer can be thought of a Vec<u8>, but the Vec type is not used to avoid copying data back and forth.

Implementations

Creates a new empty buffer.

Attempt to view this buffer as a string slice.

Returns None if the buffer is not valid utf-8.

Trait Implementations

Returns the “default value” for a type. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Executes the destructor for this type. Read more

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 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.