tinymist_project::world::package

Trait CloneIntoPack

pub trait CloneIntoPack: Debug {
    // Required method
    fn clone_into_pack(&mut self, pack: &mut impl PackFs) -> Result<(), Error>;
}
Expand description

The pack trait is used to hold a package.

Required Methods§

fn clone_into_pack(&mut self, pack: &mut impl PackFs) -> Result<(), Error>

Clones the pack into a new pack.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl CloneIntoPack for MapPack

§

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