pub struct ParserConfig {
pub skip_private: bool,
pub skip_tests: bool,
pub max_file_size: usize,
pub timeout_per_file: Option<Duration>,
pub parallel: bool,
pub parallel_workers: Option<usize>,
pub include_docs: bool,
pub extract_types: bool,
}Expand description
Configuration for parser behavior
Fields§
§skip_private: boolSkip private/internal entities (language-specific)
skip_tests: boolSkip test files and test functions
max_file_size: usizeMaximum file size to parse (in bytes) Files larger than this will be skipped
timeout_per_file: Option<Duration>Timeout per file (None = no timeout)
parallel: boolEnable parallel parsing (for parse_files)
parallel_workers: Option<usize>Number of parallel workers (None = use num_cpus)
include_docs: boolInclude documentation/comments in entities
extract_types: boolExtract type information (when available)
Implementations§
Source§impl ParserConfig
impl ParserConfig
Sourcepub fn comprehensive() -> Self
pub fn comprehensive() -> Self
Create config for comprehensive parsing
Sourcepub fn with_parallel(self, parallel: bool) -> Self
pub fn with_parallel(self, parallel: bool) -> Self
Enable parallel parsing
Sourcepub fn with_max_file_size(self, size: usize) -> Self
pub fn with_max_file_size(self, size: usize) -> Self
Set maximum file size
Trait Implementations§
Source§impl Clone for ParserConfig
impl Clone for ParserConfig
Source§fn clone(&self) -> ParserConfig
fn clone(&self) -> ParserConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParserConfig
impl Debug for ParserConfig
Source§impl Default for ParserConfig
impl Default for ParserConfig
Source§impl<'de> Deserialize<'de> for ParserConfig
impl<'de> Deserialize<'de> for ParserConfig
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
Source§impl PartialEq for ParserConfig
impl PartialEq for ParserConfig
Source§impl Serialize for ParserConfig
impl Serialize for ParserConfig
impl StructuralPartialEq for ParserConfig
Auto Trait Implementations§
impl Freeze for ParserConfig
impl RefUnwindSafe for ParserConfig
impl Send for ParserConfig
impl Sync for ParserConfig
impl Unpin for ParserConfig
impl UnwindSafe for ParserConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)