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 fast() -> ParserConfig
pub fn fast() -> ParserConfig
Create config for fast parsing (skips tests, docs, types)
Sourcepub fn comprehensive() -> ParserConfig
pub fn comprehensive() -> ParserConfig
Create config for comprehensive parsing
Sourcepub fn with_parallel(self, parallel: bool) -> ParserConfig
pub fn with_parallel(self, parallel: bool) -> ParserConfig
Enable parallel parsing
Sourcepub fn with_max_file_size(self, size: usize) -> ParserConfig
pub fn with_max_file_size(self, size: usize) -> ParserConfig
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 · 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 ParserConfig
impl Debug for ParserConfig
Source§impl Default for ParserConfig
impl Default for ParserConfig
Source§fn default() -> ParserConfig
fn default() -> ParserConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ParserConfig
impl<'de> Deserialize<'de> for ParserConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ParserConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ParserConfig, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§
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