tinymist_world::package::pack

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.

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,