Skip to main content

Packer

Trait Packer 

Source
pub trait Packer {
    // Required method
    fn pack(
        &self,
        req: &PackRequest,
        ctx: &dyn PackContext,
    ) -> Result<PackResult>;
}
Expand description

Produces a token-budgeted, flattened representation of a repository or subset.

Required Methods§

Source

fn pack(&self, req: &PackRequest, ctx: &dyn PackContext) -> Result<PackResult>

Execute a pack operation given a request and a context for file access.

Implementors§