Crate retentive_lender

Crate retentive_lender 

Source

Structs§

Lender
Allow users to borrow / borrow_mut the value while keeping the name of the borrower until it’s dropped. When the borrow / borrow_mut violates the borrow rule, it returns an Err containing the name of the previous borrower.
Ref
Wraps Ref with Dropper to remove the borrower from the borrowers list automatically.
RefMut
Wraps RefMut with Dropper to remove the borrower from the borrowers list automatically.