Crate retentive_lender

source ·

Structs

  • 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.
  • Wraps Ref with Dropper to remove the borrower from the borrowers list automatically.
  • Wraps RefMut with Dropper to remove the borrower from the borrowers list automatically.