pub enum TextOperation {
ToLowercase,
NormalizeWhitespace,
RemoveSpecialChars,
RegexReplace {
pattern: String,
replacement: String,
},
}Expand description
Text preprocessing operations for document processing
Variants§
ToLowercase
Convert to lowercase
NormalizeWhitespace
Remove extra whitespace
RemoveSpecialChars
Remove special characters
RegexReplace
Custom regex replacement
Trait Implementations§
Source§impl Clone for TextOperation
impl Clone for TextOperation
Source§fn clone(&self) -> TextOperation
fn clone(&self) -> TextOperation
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 TextOperation
impl RefUnwindSafe for TextOperation
impl Send for TextOperation
impl Sync for TextOperation
impl Unpin for TextOperation
impl UnwindSafe for TextOperation
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