pub enum Select<'a> {
All,
Files(&'a [(&'a str, &'a str)]),
Matching(&'a dyn Fn(&str) -> Option<String>),
}Expand description
Which archive entries to extract, and where each lands (relative to dest).
Variants§
All
Every file, keeping its (prefix-stripped) path. Directory entries create directories; symlinks are skipped.
Files(&'a [(&'a str, &'a str)])
Only entries whose (prefix-stripped) path equals a listed source; written to the paired destination.
Matching(&'a dyn Fn(&str) -> Option<String>)
Each entry’s (prefix-stripped) path is handed to the closure, which
returns the destination path or None to skip the entry.
Auto Trait Implementations§
impl<'a> Freeze for Select<'a>
impl<'a> !RefUnwindSafe for Select<'a>
impl<'a> !Send for Select<'a>
impl<'a> !Sync for Select<'a>
impl<'a> Unpin for Select<'a>
impl<'a> UnsafeUnpin for Select<'a>
impl<'a> !UnwindSafe for Select<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more