pub struct CleanerConfig {
pub remove_inline_citations: bool,
pub remove_reference_links: bool,
pub remove_reference_headers: bool,
pub remove_reference_entries: bool,
pub normalize_whitespace: bool,
pub remove_blank_lines: bool,
pub trim_lines: bool,
}Expand description
Configuration options for citation removal
Fields§
§remove_inline_citations: boolRemove inline citations like [1][2]
remove_reference_links: boolRemove reference link lists at bottom
remove_reference_headers: boolRemove reference section headers (## References)
remove_reference_entries: boolRemove full bibliographic entries
normalize_whitespace: boolNormalize whitespace after removal
remove_blank_lines: boolRemove blank lines left by removed sections
trim_lines: boolTrim trailing whitespace from lines
Implementations§
Source§impl CleanerConfig
impl CleanerConfig
Sourcepub fn inline_only() -> Self
pub fn inline_only() -> Self
Create a configuration that only removes inline citations
Sourcepub fn references_only() -> Self
pub fn references_only() -> Self
Create a configuration that only removes reference sections
Trait Implementations§
Source§impl Clone for CleanerConfig
impl Clone for CleanerConfig
Source§fn clone(&self) -> CleanerConfig
fn clone(&self) -> CleanerConfig
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 CleanerConfig
impl Debug for CleanerConfig
Auto Trait Implementations§
impl Freeze for CleanerConfig
impl RefUnwindSafe for CleanerConfig
impl Send for CleanerConfig
impl Sync for CleanerConfig
impl Unpin for CleanerConfig
impl UnwindSafe for CleanerConfig
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