pub struct RemoverConfig {
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 RemoverConfig
impl RemoverConfig
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 RemoverConfig
impl Clone for RemoverConfig
Source§fn clone(&self) -> RemoverConfig
fn clone(&self) -> RemoverConfig
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 RemoverConfig
impl Debug for RemoverConfig
Auto Trait Implementations§
impl Freeze for RemoverConfig
impl RefUnwindSafe for RemoverConfig
impl Send for RemoverConfig
impl Sync for RemoverConfig
impl Unpin for RemoverConfig
impl UnwindSafe for RemoverConfig
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