Skip to main content

PackExt

Trait PackExt 

Source
pub trait PackExt: Pack {
    // Provided method
    fn filter(&mut self, f: impl Fn(&str) -> bool + Send + Sync) -> impl Pack
       where Self: Sized { ... }
}
Expand description

The pack trait extension.

Provided Methods§

Source

fn filter(&mut self, f: impl Fn(&str) -> bool + Send + Sync) -> impl Pack
where Self: Sized,

Filter the package files to read by a function.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl PackExt for GitHubReleasePack

Source§

impl PackExt for MapPack

Source§

impl PackExt for UniversePack

Source§

impl<P> PackExt for DirPack<P>
where P: AsRef<Path>,

Source§

impl<P> PackExt for GitClPack<P>
where P: AsRef<str>,

Source§

impl<P> PackExt for HttpPack<P>
where P: AsRef<str>,

Source§

impl<R> PackExt for TarballPack<R>
where R: Read,