[−][src]Struct ostree::RepoCheckoutFilter
A filter callback to decide which files to checkout from a Repo. The function is called for every directory and file in the dirtree.
Arguments
repo
- theRepo
that is being checked outpath
- the path of the current file, as an absolute path rooted at the commit's root. The root directory is '/', a subdir would be '/subdir' etc.stat
- the metadata of the current file
Return Value
The return value determines whether the current file is checked out or skipped.
Implementations
impl RepoCheckoutFilter
[src]
pub fn new<F>(closure: F) -> Option<RepoCheckoutFilter> where
F: Fn(&Repo, &Path, &stat) -> RepoCheckoutFilterResult + 'static,
[src]
F: Fn(&Repo, &Path, &stat) -> RepoCheckoutFilterResult + 'static,
Wrap a closure for use as a filter function.
Return Value
The return value is always Some
containing the value. It simply comes pre-wrapped for your
convenience.
Trait Implementations
impl<'_> FromGlibPtrNone<*mut c_void> for &'_ RepoCheckoutFilter
[src]
unsafe fn from_glib_none(ptr: gpointer) -> Self
[src]
impl<'a> ToGlibPtr<'a, *mut c_void> for RepoCheckoutFilter
[src]
type Storage = ()
fn to_glib_none(&'a self) -> Stash<gpointer, Self>
[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
fn to_glib_full(&self) -> P
[src]
Auto Trait Implementations
impl !RefUnwindSafe for RepoCheckoutFilter
impl !Send for RepoCheckoutFilter
impl !Sync for RepoCheckoutFilter
impl Unpin for RepoCheckoutFilter
impl !UnwindSafe for RepoCheckoutFilter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,