pub struct Packer { /* private fields */ }Expand description
Bundles files and their enriched bones into an AI-friendly output format.
Implementations§
Source§impl Packer
impl Packer
Sourcepub fn new(
cache: Cache,
parser: Parser,
format: OutputFormat,
max_tokens: Option<usize>,
) -> Self
pub fn new( cache: Cache, parser: Parser, format: OutputFormat, max_tokens: Option<usize>, ) -> Self
Creates a new Packer instance.
Sourcepub fn register_plugin(&mut self, plugin: Box<dyn ContextPlugin>)
pub fn register_plugin(&mut self, plugin: Box<dyn ContextPlugin>)
Registers a context plugin.
Auto Trait Implementations§
impl Freeze for Packer
impl !RefUnwindSafe for Packer
impl Send for Packer
impl Sync for Packer
impl Unpin for Packer
impl UnsafeUnpin for Packer
impl !UnwindSafe for Packer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more