pub struct ParserConfig {
pub include_extensions: Vec<String>,
pub ignored_dirs: Vec<String>,
pub ignored_paths: Vec<String>,
pub max_snippets_per_file: usize,
}Fields§
§include_extensions: Vec<String>§ignored_dirs: Vec<String>§ignored_paths: Vec<String>§max_snippets_per_file: usizeImplementations§
Source§impl ParserConfig
impl ParserConfig
pub fn with_ignored_paths( self, ignored_paths: impl IntoIterator<Item = String>, ) -> Self
pub fn ignores_entry(&self, repo_root: &Path, path: &Path) -> bool
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 (const: unstable) · 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
Auto Trait Implementations§
impl Freeze for ParserConfig
impl RefUnwindSafe for ParserConfig
impl Send for ParserConfig
impl Sync for ParserConfig
impl Unpin for ParserConfig
impl UnsafeUnpin 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