pub struct FilterConfig {
pub remove_tests: bool,
pub remove_doc_comments: bool,
pub remove_comments: bool,
pub remove_blank_lines: bool,
pub preserve_headers: bool,
pub remove_debug_prints: bool,
}Expand description
Configuration for code filtering operations.
Fields§
§remove_tests: boolRemove test code (e.g., #test, #[cfg(test)])
remove_doc_comments: boolRemove documentation comments (///, /** */)
remove_comments: boolRemove regular comments (//, /* */)
remove_blank_lines: boolRemove blank lines after filtering
preserve_headers: boolPreserve copyright/license headers
remove_debug_prints: boolRemove debug print statements (println!, dbg!, etc.)
Implementations§
Source§impl FilterConfig
impl FilterConfig
Sourcepub fn preserve_docs() -> Self
pub fn preserve_docs() -> Self
Creates a configuration that keeps documentation.
Sourcepub fn production() -> Self
pub fn production() -> Self
Creates a configuration for production-ready code.
Trait Implementations§
Source§impl Clone for FilterConfig
impl Clone for FilterConfig
Source§fn clone(&self) -> FilterConfig
fn clone(&self) -> FilterConfig
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 FilterConfig
impl Debug for FilterConfig
Auto Trait Implementations§
impl Freeze for FilterConfig
impl RefUnwindSafe for FilterConfig
impl Send for FilterConfig
impl Sync for FilterConfig
impl Unpin for FilterConfig
impl UnwindSafe for FilterConfig
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)