pub struct Buf { /* fields omitted */ }
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.
Creates a new empty buffer.
Attempt to view this buffer as a string slice.
Returns None
if the buffer is not valid utf-8.
Executes the destructor for this type. Read more
Returns the "default value" for a type. Read more
Mutably dereferences the value.
The resulting type after dereferencing.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static