pub struct CleanBuilder { /* private fields */ }Expand description
Builder for cleaning options.
Implementations§
Source§impl CleanBuilder
impl CleanBuilder
pub fn new() -> Self
pub fn preserve_paragraphs(self, preserve: bool) -> Self
pub fn strip_markdown_artifacts(self, strip: bool) -> Self
pub fn strip_invisible_chars(self, strip: bool) -> Self
pub fn collapse_all_whitespace(self, collapse: bool) -> Self
pub fn build(self) -> CleanOptions
pub fn clean(self, text: &str) -> String
Trait Implementations§
Source§impl Clone for CleanBuilder
impl Clone for CleanBuilder
Source§fn clone(&self) -> CleanBuilder
fn clone(&self) -> CleanBuilder
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 moreimpl Copy for CleanBuilder
Source§impl Debug for CleanBuilder
impl Debug for CleanBuilder
Source§impl Default for CleanBuilder
impl Default for CleanBuilder
impl Eq for CleanBuilder
Source§impl PartialEq for CleanBuilder
impl PartialEq for CleanBuilder
Source§fn eq(&self, other: &CleanBuilder) -> bool
fn eq(&self, other: &CleanBuilder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CleanBuilder
Auto Trait Implementations§
impl Freeze for CleanBuilder
impl RefUnwindSafe for CleanBuilder
impl Send for CleanBuilder
impl Sync for CleanBuilder
impl Unpin for CleanBuilder
impl UnsafeUnpin for CleanBuilder
impl UnwindSafe for CleanBuilder
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