pub struct KeyBuilder<T> {
pub extractor: Arc<dyn Fn(&T) -> u64 + Send + Sync>,
}Fields§
§extractor: Arc<dyn Fn(&T) -> u64 + Send + Sync>Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for KeyBuilder<T>
impl<T: Clone> Clone for KeyBuilder<T>
Source§fn clone(&self) -> KeyBuilder<T>
fn clone(&self) -> KeyBuilder<T>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<T> Freeze for KeyBuilder<T>
impl<T> !RefUnwindSafe for KeyBuilder<T>
impl<T> Send for KeyBuilder<T>
impl<T> Sync for KeyBuilder<T>
impl<T> Unpin for KeyBuilder<T>
impl<T> !UnwindSafe for KeyBuilder<T>
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