tinymist_project::world::package

Trait PackExt

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§

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§

§

impl PackExt for GitHubReleasePack

§

impl PackExt for MapPack

§

impl PackExt for UniversePack

§

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

§

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

§

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

§

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