pub struct AtomizerConfig {
pub min_function_lines: usize,
pub min_file_lines_to_split: usize,
pub max_atom_lines: usize,
pub include_doc_comments: bool,
pub include_type_context: bool,
pub resolution_depth: usize,
pub languages: HashMap<String, LanguageConfig>,
pub namespace: Option<String>,
}Expand description
Configuration for the atomizer
Fields§
§min_function_lines: usizeMinimum lines for a function to be its own atom
min_file_lines_to_split: usizeMinimum lines for a file to be split into atoms
max_atom_lines: usizeMaximum lines per atom before forcing a split
include_doc_comments: boolWhether to extract doc comments as part of the atom
include_type_context: boolWhether to include type definitions referenced by functions
resolution_depth: usizeDepth of dependency resolution
languages: HashMap<String, LanguageConfig>Language-specific configurations
namespace: Option<String>Namespace for generated aliases
Implementations§
Trait Implementations§
Source§impl Clone for AtomizerConfig
impl Clone for AtomizerConfig
Source§fn clone(&self) -> AtomizerConfig
fn clone(&self) -> AtomizerConfig
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 AtomizerConfig
impl Debug for AtomizerConfig
Source§impl Default for AtomizerConfig
impl Default for AtomizerConfig
Source§impl<'de> Deserialize<'de> for AtomizerConfig
impl<'de> Deserialize<'de> for AtomizerConfig
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 AtomizerConfig
impl RefUnwindSafe for AtomizerConfig
impl Send for AtomizerConfig
impl Sync for AtomizerConfig
impl Unpin for AtomizerConfig
impl UnwindSafe for AtomizerConfig
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