Struct ostree::RepoCheckoutFilter
source · pub struct RepoCheckoutFilter(_);Expand description
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- theRepothat 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
sourceimpl RepoCheckoutFilter
impl RepoCheckoutFilter
sourcepub fn new<F>(closure: F) -> Option<RepoCheckoutFilter>where
F: Fn(&Repo, &Path, &stat) -> RepoCheckoutFilterResult + 'static,
pub fn new<F>(closure: F) -> Option<RepoCheckoutFilter>where
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
sourceimpl FromGlibPtrNone<*mut c_void> for &RepoCheckoutFilter
impl FromGlibPtrNone<*mut c_void> for &RepoCheckoutFilter
sourceunsafe fn from_glib_none(ptr: gpointer) -> Self
unsafe fn from_glib_none(ptr: gpointer) -> Self
Safety Read more
sourceimpl<'a> ToGlibPtr<'a, *mut c_void> for RepoCheckoutFilter
impl<'a> ToGlibPtr<'a, *mut c_void> for RepoCheckoutFilter
type Storage = ()
sourcefn to_glib_none(&'a self) -> Stash<'_, gpointer, Self>
fn to_glib_none(&'a self) -> Stash<'_, gpointer, Self>
Transfer: none. Read more
sourcefn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
sourcefn to_glib_full(&self) -> P
fn to_glib_full(&self) -> P
Transfer: full. Read more
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more