#[repr(C)]
pub struct git_odb_backend {
Show 16 fields pub version: c_uint, pub odb: *mut git_odb, pub read: Option<extern "C" fn(_: *mut *mut c_void, _: *mut size_t, _: *mut git_object_t, _: *mut git_odb_backend, _: *const git_oid) -> c_int>, pub read_prefix: Option<extern "C" fn(_: *mut git_oid, _: *mut *mut c_void, _: *mut size_t, _: *mut git_object_t, _: *mut git_odb_backend, _: *const git_oid, _: size_t) -> c_int>, pub read_header: Option<extern "C" fn(_: *mut size_t, _: *mut git_object_t, _: *mut git_odb_backend, _: *const git_oid) -> c_int>, pub write: Option<extern "C" fn(_: *mut git_odb_backend, _: *const git_oid, _: *const c_void, _: size_t, _: git_object_t) -> c_int>, pub writestream: Option<extern "C" fn(_: *mut *mut git_odb_stream, _: *mut git_odb_backend, _: git_object_size_t, _: git_object_t) -> c_int>, pub readstream: Option<extern "C" fn(_: *mut *mut git_odb_stream, _: *mut size_t, _: *mut git_object_t, _: *mut git_odb_backend, _: *const git_oid) -> c_int>, pub exists: Option<extern "C" fn(_: *mut git_odb_backend, _: *const git_oid) -> c_int>, pub exists_prefix: Option<extern "C" fn(_: *mut git_oid, _: *mut git_odb_backend, _: *const git_oid, _: size_t) -> c_int>, pub refresh: Option<extern "C" fn(_: *mut git_odb_backend) -> c_int>, pub foreach: Option<extern "C" fn(_: *mut git_odb_backend, _: git_odb_foreach_cb, _: *mut c_void) -> c_int>, pub writepack: Option<extern "C" fn(_: *mut *mut git_odb_writepack, _: *mut git_odb_backend, _: *mut git_odb, _: git_indexer_progress_cb, _: *mut c_void) -> c_int>, pub writemidx: Option<extern "C" fn(_: *mut git_odb_backend) -> c_int>, pub freshen: Option<extern "C" fn(_: *mut git_odb_backend, _: *const git_oid) -> c_int>, pub free: Option<extern "C" fn(_: *mut git_odb_backend)>,
}

Fields§

§version: c_uint§odb: *mut git_odb§read: Option<extern "C" fn(_: *mut *mut c_void, _: *mut size_t, _: *mut git_object_t, _: *mut git_odb_backend, _: *const git_oid) -> c_int>§read_prefix: Option<extern "C" fn(_: *mut git_oid, _: *mut *mut c_void, _: *mut size_t, _: *mut git_object_t, _: *mut git_odb_backend, _: *const git_oid, _: size_t) -> c_int>§read_header: Option<extern "C" fn(_: *mut size_t, _: *mut git_object_t, _: *mut git_odb_backend, _: *const git_oid) -> c_int>§write: Option<extern "C" fn(_: *mut git_odb_backend, _: *const git_oid, _: *const c_void, _: size_t, _: git_object_t) -> c_int>§writestream: Option<extern "C" fn(_: *mut *mut git_odb_stream, _: *mut git_odb_backend, _: git_object_size_t, _: git_object_t) -> c_int>§readstream: Option<extern "C" fn(_: *mut *mut git_odb_stream, _: *mut size_t, _: *mut git_object_t, _: *mut git_odb_backend, _: *const git_oid) -> c_int>§exists: Option<extern "C" fn(_: *mut git_odb_backend, _: *const git_oid) -> c_int>§exists_prefix: Option<extern "C" fn(_: *mut git_oid, _: *mut git_odb_backend, _: *const git_oid, _: size_t) -> c_int>§refresh: Option<extern "C" fn(_: *mut git_odb_backend) -> c_int>§foreach: Option<extern "C" fn(_: *mut git_odb_backend, _: git_odb_foreach_cb, _: *mut c_void) -> c_int>§writepack: Option<extern "C" fn(_: *mut *mut git_odb_writepack, _: *mut git_odb_backend, _: *mut git_odb, _: git_indexer_progress_cb, _: *mut c_void) -> c_int>§writemidx: Option<extern "C" fn(_: *mut git_odb_backend) -> c_int>§freshen: Option<extern "C" fn(_: *mut git_odb_backend, _: *const git_oid) -> c_int>§free: Option<extern "C" fn(_: *mut git_odb_backend)>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.