pub struct MergerBuilder<R, MF> { /* private fields */ }Expand description
A struct that is used to configure a Merger with the sources to merge.
Implementations§
Source§impl<R, MF> MergerBuilder<R, MF>
impl<R, MF> MergerBuilder<R, MF>
Sourcepub fn new(merge: MF) -> Self
pub fn new(merge: MF) -> Self
Creates a MergerBuilder from a merge function, it can be
used to configure your Merger with the sources to merge.
Sourcepub fn add(self, source: ReaderCursor<R>) -> Self
pub fn add(self, source: ReaderCursor<R>) -> Self
Add a source to merge, this function can be chained.
Sourcepub fn push(&mut self, source: ReaderCursor<R>)
pub fn push(&mut self, source: ReaderCursor<R>)
Push a source to merge, this function can be used in a loop.
Trait Implementations§
Source§impl<R, MF> Extend<ReaderCursor<R>> for MergerBuilder<R, MF>
impl<R, MF> Extend<ReaderCursor<R>> for MergerBuilder<R, MF>
Source§fn extend<T: IntoIterator<Item = ReaderCursor<R>>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = ReaderCursor<R>>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Auto Trait Implementations§
impl<R, MF> Freeze for MergerBuilder<R, MF>where
MF: Freeze,
impl<R, MF> RefUnwindSafe for MergerBuilder<R, MF>where
MF: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, MF> Send for MergerBuilder<R, MF>
impl<R, MF> Sync for MergerBuilder<R, MF>
impl<R, MF> Unpin for MergerBuilder<R, MF>
impl<R, MF> UnwindSafe for MergerBuilder<R, MF>where
MF: UnwindSafe,
R: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more