pub struct SeparatorSplitConfig {
pub separators_regex: Vec<String>,
pub keep_separator: Option<KeepSeparator>,
pub include_empty: bool,
pub trim: bool,
}Expand description
Configuration for separator-based text splitting.
Fields§
§separators_regex: Vec<String>Regex patterns for separators. They are OR-joined into a single pattern.
keep_separator: Option<KeepSeparator>How to handle separators (None means discard them).
include_empty: boolWhether to include empty chunks in the output.
trim: boolWhether to trim whitespace from chunks.
Trait Implementations§
Source§impl Clone for SeparatorSplitConfig
impl Clone for SeparatorSplitConfig
Source§fn clone(&self) -> SeparatorSplitConfig
fn clone(&self) -> SeparatorSplitConfig
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 SeparatorSplitConfig
impl Debug for SeparatorSplitConfig
Auto Trait Implementations§
impl Freeze for SeparatorSplitConfig
impl RefUnwindSafe for SeparatorSplitConfig
impl Send for SeparatorSplitConfig
impl Sync for SeparatorSplitConfig
impl Unpin for SeparatorSplitConfig
impl UnsafeUnpin for SeparatorSplitConfig
impl UnwindSafe for SeparatorSplitConfig
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