pub struct SharedKeyDefault<Key, Seed> { /* private fields */ }Expand description
Attaches a repeatable default without changing the base key’s identity.
Implementations§
Sourcepub fn initial_value(&self) -> Key::Value
pub fn initial_value(&self) -> Key::Value
Evaluates the default on every direct access, independently of cache hits.
Trait Implementations§
Auto Trait Implementations§
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