pub struct CleaningOptionsBuilder { /* private fields */ }Expand description
Builder for CleaningOptions.
Implementations§
Source§impl CleaningOptionsBuilder
impl CleaningOptionsBuilder
Sourcepub fn remove_trailing_whitespace(self, value: bool) -> Self
pub fn remove_trailing_whitespace(self, value: bool) -> Self
Sourcepub fn normalize_spaces(self, value: bool) -> Self
pub fn normalize_spaces(self, value: bool) -> Self
Sourcepub fn normalize_dashes(self, value: bool) -> Self
pub fn normalize_dashes(self, value: bool) -> Self
Sourcepub fn normalize_quotes(self, value: bool) -> Self
pub fn normalize_quotes(self, value: bool) -> Self
Sourcepub fn normalize_other(self, value: bool) -> Self
pub fn normalize_other(self, value: bool) -> Self
Sourcepub fn keyboard_only(self, value: bool) -> Self
pub fn keyboard_only(self, value: bool) -> Self
Sourcepub fn extended_keyboard(self, value: bool) -> Self
pub fn extended_keyboard(self, value: bool) -> Self
Sourcepub fn emoji_policy(self, policy: EmojiPolicy) -> Self
pub fn emoji_policy(self, policy: EmojiPolicy) -> Self
Sourcepub fn non_ascii_policy(self, policy: NonAsciiPolicy) -> Self
pub fn non_ascii_policy(self, policy: NonAsciiPolicy) -> Self
Sourcepub fn preserve_joiners(self, value: bool) -> Self
pub fn preserve_joiners(self, value: bool) -> Self
Sourcepub fn remove_control_chars(self, value: bool) -> Self
pub fn remove_control_chars(self, value: bool) -> Self
Sourcepub fn collapse_whitespace(self, value: bool) -> Self
pub fn collapse_whitespace(self, value: bool) -> Self
Sourcepub fn normalize_line_endings(self, value: Option<LineEndingStyle>) -> Self
pub fn normalize_line_endings(self, value: Option<LineEndingStyle>) -> Self
Sourcepub fn unicode_normalization(self, mode: UnicodeNormalizationMode) -> Self
pub fn unicode_normalization(self, mode: UnicodeNormalizationMode) -> Self
Sourcepub fn strip_bidi_controls(self, value: bool) -> Self
pub fn strip_bidi_controls(self, value: bool) -> Self
Sourcepub fn build(self) -> CleaningOptions
pub fn build(self) -> CleaningOptions
Trait Implementations§
Source§impl Clone for CleaningOptionsBuilder
impl Clone for CleaningOptionsBuilder
Source§fn clone(&self) -> CleaningOptionsBuilder
fn clone(&self) -> CleaningOptionsBuilder
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 moreAuto Trait Implementations§
impl Freeze for CleaningOptionsBuilder
impl RefUnwindSafe for CleaningOptionsBuilder
impl Send for CleaningOptionsBuilder
impl Sync for CleaningOptionsBuilder
impl Unpin for CleaningOptionsBuilder
impl UnsafeUnpin for CleaningOptionsBuilder
impl UnwindSafe for CleaningOptionsBuilder
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