pub struct MergeDateTime<P>(pub P);Tuple Fields§
§0: PTrait Implementations§
Source§impl<P: MergeDateTimePattern> MergingRefiner for MergeDateTime<P>
impl<P: MergeDateTimePattern> MergingRefiner for MergeDateTime<P>
fn should_merge_results( &self, text_between: &str, current: &ParsingResult, next: &ParsingResult, _context: &ParsingContext, ) -> bool
Source§fn merge_results(
&self,
text_between: &str,
current: ParsingResult,
next: ParsingResult,
_context: &ParsingContext,
) -> ParsingResult
fn merge_results( &self, text_between: &str, current: ParsingResult, next: ParsingResult, _context: &ParsingContext, ) -> ParsingResult
Takes both results by value: upstream may mutate them while merging.
Auto Trait Implementations§
impl<P> Forget for MergeDateTime<P>
impl<P> Freeze for MergeDateTime<P>where
P: Freeze,
impl<P> RefUnwindSafe for MergeDateTime<P>where
P: RefUnwindSafe,
impl<P> Send for MergeDateTime<P>where
P: Send,
impl<P> Sync for MergeDateTime<P>where
P: Sync,
impl<P> Unpin for MergeDateTime<P>where
P: Unpin,
impl<P> UnsafeUnpin for MergeDateTime<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for MergeDateTime<P>where
P: UnwindSafe,
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