pub enum MatchDisposition {
Drop,
Append,
Prepend,
}
Expand description
Specify what the chunker should do with the matched text.
Variants§
Drop
Discard the matched text; only return the text between matches. This is the default behavior.
Append
Treat the matched text like the end of the preceding chunk.
Prepend
Treat the matched text like the beginning of the following chunk.
Trait Implementations§
Source§impl Clone for MatchDisposition
impl Clone for MatchDisposition
Source§fn clone(&self) -> MatchDisposition
fn clone(&self) -> MatchDisposition
Returns a copy 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 MatchDisposition
impl Debug for MatchDisposition
Source§impl Default for MatchDisposition
impl Default for MatchDisposition
Source§fn default() -> MatchDisposition
fn default() -> MatchDisposition
Returns the “default value” for a type. Read more
impl Copy for MatchDisposition
Auto Trait Implementations§
impl Freeze for MatchDisposition
impl RefUnwindSafe for MatchDisposition
impl Send for MatchDisposition
impl Sync for MatchDisposition
impl Unpin for MatchDisposition
impl UnwindSafe for MatchDisposition
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