pub struct TextCleaner {
pub newlines: Newlines,
pub remove_non_basic_ascii: bool,
pub remove_citations: bool,
}Fields§
§newlines: Newlines§remove_non_basic_ascii: bool§remove_citations: boolImplementations§
Source§impl TextCleaner
impl TextCleaner
pub fn new() -> Self
pub fn do_not_reduce_newlines(self) -> Self
pub fn reduce_newlines_to_single_space(self) -> Self
pub fn reduce_newlines_to_single_newline(self) -> Self
pub fn reduce_newlines_to_double_newline(self) -> Self
pub fn remove_non_basic_ascii(self) -> Self
pub fn remove_citations(self) -> Self
Trait Implementations§
Source§impl Default for TextCleaner
impl Default for TextCleaner
Source§fn default() -> TextCleaner
fn default() -> TextCleaner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TextCleaner
impl RefUnwindSafe for TextCleaner
impl Send for TextCleaner
impl Sync for TextCleaner
impl Unpin for TextCleaner
impl UnsafeUnpin for TextCleaner
impl UnwindSafe for TextCleaner
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