pub struct ChunkingConfig {
pub chunk_size: usize,
pub strategy: ChunkingStrategy,
pub max_links_per_node: usize,
}Expand description
Configuration for chunking operations
Fields§
§chunk_size: usizeSize of each chunk in bytes
strategy: ChunkingStrategyChunking strategy to use
max_links_per_node: usizeMaximum links per DAG node (for balanced trees)
Implementations§
Source§impl ChunkingConfig
impl ChunkingConfig
Sourcepub fn builder() -> ChunkingConfigBuilder
pub fn builder() -> ChunkingConfigBuilder
Create a new chunking configuration builder
Sourcepub fn with_chunk_size(chunk_size: usize) -> Result<Self>
pub fn with_chunk_size(chunk_size: usize) -> Result<Self>
Create a new chunking configuration with the specified chunk size
Sourcepub fn content_defined() -> Self
pub fn content_defined() -> Self
Create a configuration for content-defined chunking
Sourcepub fn content_defined_with_size(target_size: usize) -> Result<Self>
pub fn content_defined_with_size(target_size: usize) -> Result<Self>
Create a configuration for content-defined chunking with custom target size
Trait Implementations§
Source§impl Clone for ChunkingConfig
impl Clone for ChunkingConfig
Source§fn clone(&self) -> ChunkingConfig
fn clone(&self) -> ChunkingConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChunkingConfig
impl Debug for ChunkingConfig
Auto Trait Implementations§
impl Freeze for ChunkingConfig
impl RefUnwindSafe for ChunkingConfig
impl Send for ChunkingConfig
impl Sync for ChunkingConfig
impl Unpin for ChunkingConfig
impl UnwindSafe for ChunkingConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more