pub struct SmartChunkerConfig {
pub min_function_lines: usize,
pub min_file_lines_to_split: usize,
pub max_chunk_lines: usize,
pub extract_utilities: bool,
pub extract_types: bool,
pub group_related: bool,
pub prefer_atomic: bool,
pub namespace: Option<String>,
}Expand description
Configuration for smart chunking
Fields§
§min_function_lines: usizeMinimum lines for a function to be its own chunk
min_file_lines_to_split: usizeMinimum lines for a file to be chunked vs kept atomic
max_chunk_lines: usizeMaximum lines before forcing a split
extract_utilities: boolWhether to extract utility functions as separate chunks
extract_types: boolWhether to create type-level chunks (structs, classes)
Whether to group related functions together
prefer_atomic: boolPrefer atomic (single) chunks when possible
namespace: Option<String>Namespace for generated aliases
Trait Implementations§
Source§impl Clone for SmartChunkerConfig
impl Clone for SmartChunkerConfig
Source§fn clone(&self) -> SmartChunkerConfig
fn clone(&self) -> SmartChunkerConfig
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 SmartChunkerConfig
impl Debug for SmartChunkerConfig
Source§impl Default for SmartChunkerConfig
impl Default for SmartChunkerConfig
Source§impl<'de> Deserialize<'de> for SmartChunkerConfig
impl<'de> Deserialize<'de> for SmartChunkerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SmartChunkerConfig
impl RefUnwindSafe for SmartChunkerConfig
impl Send for SmartChunkerConfig
impl Sync for SmartChunkerConfig
impl Unpin for SmartChunkerConfig
impl UnwindSafe for SmartChunkerConfig
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