pub enum MergeType {
FullMerge,
OptimizedMerge,
}
Expand description
Result returned by merge_type()
to determine how to properly merge values within a layerset.
Variants§
FullMerge
Always includes every layer in the merger, when seeking or advancing. Always correct, but always as slow as possible.
OptimizedMerge
Stops seeking older layers when an exact key match is found in a newer one. Useful for keys
that only replace data, or with next_key()
implementations to decide on continued merging.
Trait Implementations§
impl StructuralPartialEq for MergeType
Auto Trait Implementations§
impl Freeze for MergeType
impl RefUnwindSafe for MergeType
impl Send for MergeType
impl Sync for MergeType
impl Unpin for MergeType
impl UnwindSafe for MergeType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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