WIP
This commit is contained in:
parent
8e36da1382
commit
3c938a7377
3 changed files with 16 additions and 4 deletions
|
@ -406,6 +406,8 @@ impl BorrowAppContext for TestAppContext {
|
|||
}
|
||||
|
||||
impl BorrowWindowContext for TestAppContext {
|
||||
type Return<T> = T;
|
||||
|
||||
fn read_with<T, F: FnOnce(&WindowContext) -> T>(&self, window_id: usize, f: F) -> T {
|
||||
self.cx
|
||||
.borrow()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue