pub struct ConfigComparator {
pub identity: String,
pub func: KeyComparatorFn,
}Expand description
A persisted-identity + comparison-function pair threaded from the public
noxu_db::Comparator down to DatabaseImpl.
The identity is the stable string persisted in the database record (the
NameLN data) and re-checked at open; the func is the actual comparison
closure threaded into the Tree. JE DatabaseImpl.btreeComparator plus
the persisted btreeComparatorBytes (the serialized class name).
Fields§
§identity: StringStable identity persisted in the database record.
func: KeyComparatorFnThe comparison closure threaded into the tree.
Trait Implementations§
Source§impl Clone for ConfigComparator
impl Clone for ConfigComparator
Source§fn clone(&self) -> ConfigComparator
fn clone(&self) -> ConfigComparator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ConfigComparator
impl !UnwindSafe for ConfigComparator
impl Freeze for ConfigComparator
impl Send for ConfigComparator
impl Sync for ConfigComparator
impl Unpin for ConfigComparator
impl UnsafeUnpin for ConfigComparator
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