#[repr(C)]
pub struct git_refdb_backend {
Show 17 fields pub version: c_uint, pub exists: Option<extern "C" fn(_: *mut c_int, _: *mut git_refdb_backend, _: *const c_char) -> c_int>, pub lookup: Option<extern "C" fn(_: *mut *mut git_reference, _: *mut git_refdb_backend, _: *const c_char) -> c_int>, pub iterator: Option<extern "C" fn(_: *mut *mut git_reference_iterator, _: *mut git_refdb_backend, _: *const c_char) -> c_int>, pub write: Option<extern "C" fn(_: *mut git_refdb_backend, _: *const git_reference, _: c_int, _: *const git_signature, _: *const c_char, _: *const git_oid, _: *const c_char) -> c_int>, pub rename: Option<extern "C" fn(_: *mut *mut git_reference, _: *mut git_refdb_backend, _: *const c_char, _: *const c_char, _: c_int, _: *const git_signature, _: *const c_char) -> c_int>, pub del: Option<extern "C" fn(_: *mut git_refdb_backend, _: *const c_char, _: *const git_oid, _: *const c_char) -> c_int>, pub compress: Option<extern "C" fn(_: *mut git_refdb_backend) -> c_int>, pub has_log: Option<extern "C" fn(_: *mut git_refdb_backend, _: *const c_char) -> c_int>, pub ensure_log: Option<extern "C" fn(_: *mut git_refdb_backend, _: *const c_char) -> c_int>, pub free: Option<extern "C" fn(_: *mut git_refdb_backend)>, pub reflog_read: Option<extern "C" fn(_: *mut *mut git_reflog, _: *mut git_refdb_backend, _: *const c_char) -> c_int>, pub reflog_write: Option<extern "C" fn(_: *mut git_refdb_backend, _: *mut git_reflog) -> c_int>, pub reflog_rename: Option<extern "C" fn(_: *mut git_refdb_backend, _: *const c_char, _: *const c_char) -> c_int>, pub reflog_delete: Option<extern "C" fn(_: *mut git_refdb_backend, _: *const c_char) -> c_int>, pub lock: Option<extern "C" fn(_: *mut *mut c_void, _: *mut git_refdb_backend, _: *const c_char) -> c_int>, pub unlock: Option<extern "C" fn(_: *mut git_refdb_backend, _: *mut c_void, _: c_int, _: c_int, _: *const git_reference, _: *const git_signature, _: *const c_char) -> c_int>,
}

Fields§

§version: c_uint§exists: Option<extern "C" fn(_: *mut c_int, _: *mut git_refdb_backend, _: *const c_char) -> c_int>§lookup: Option<extern "C" fn(_: *mut *mut git_reference, _: *mut git_refdb_backend, _: *const c_char) -> c_int>§iterator: Option<extern "C" fn(_: *mut *mut git_reference_iterator, _: *mut git_refdb_backend, _: *const c_char) -> c_int>§write: Option<extern "C" fn(_: *mut git_refdb_backend, _: *const git_reference, _: c_int, _: *const git_signature, _: *const c_char, _: *const git_oid, _: *const c_char) -> c_int>§rename: Option<extern "C" fn(_: *mut *mut git_reference, _: *mut git_refdb_backend, _: *const c_char, _: *const c_char, _: c_int, _: *const git_signature, _: *const c_char) -> c_int>§del: Option<extern "C" fn(_: *mut git_refdb_backend, _: *const c_char, _: *const git_oid, _: *const c_char) -> c_int>§compress: Option<extern "C" fn(_: *mut git_refdb_backend) -> c_int>§has_log: Option<extern "C" fn(_: *mut git_refdb_backend, _: *const c_char) -> c_int>§ensure_log: Option<extern "C" fn(_: *mut git_refdb_backend, _: *const c_char) -> c_int>§free: Option<extern "C" fn(_: *mut git_refdb_backend)>§reflog_read: Option<extern "C" fn(_: *mut *mut git_reflog, _: *mut git_refdb_backend, _: *const c_char) -> c_int>§reflog_write: Option<extern "C" fn(_: *mut git_refdb_backend, _: *mut git_reflog) -> c_int>§reflog_rename: Option<extern "C" fn(_: *mut git_refdb_backend, _: *const c_char, _: *const c_char) -> c_int>§reflog_delete: Option<extern "C" fn(_: *mut git_refdb_backend, _: *const c_char) -> c_int>§lock: Option<extern "C" fn(_: *mut *mut c_void, _: *mut git_refdb_backend, _: *const c_char) -> c_int>§unlock: Option<extern "C" fn(_: *mut git_refdb_backend, _: *mut c_void, _: c_int, _: c_int, _: *const git_reference, _: *const git_signature, _: *const c_char) -> c_int>

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where 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 T
where 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.