Skip to main content

DocumentChunk

Trait DocumentChunk 

Source
pub trait DocumentChunk {
    type Error: Error + 'static + Send + Sync;

    // Required method
    fn chunk(&self, doc: &Document) -> Result<Vec<Chunk>, Self::Error>;
}

Required Associated Types§

Source

type Error: Error + 'static + Send + Sync

Required Methods§

Source

fn chunk(&self, doc: &Document) -> Result<Vec<Chunk>, Self::Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§