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.
Creates a new empty buffer.
Attempt to view this buffer as a string slice.
Returns None
if the buffer is not valid utf-8.
Returns the “default value” for a type. Read more
The resulting type after dereferencing.
Mutably dereferences the value.
Executes the destructor for this type. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.