-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
complete oop style api up to what Book has to offer
Came accross the lifetime issue again when `Book::running_balance` returns `Transaction<'a>` where `'a` is of the book. This too does not cross the `std::cell::Ref<'_, T>` boundry. However, there is a way to get to the underlying lifetime through an unstable feature 'cell_leak' see rust-lang/rust#69099 This allows the borrow checker to life-check!
- Loading branch information
Showing
3 changed files
with
45 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters