Skip to content

Provide get_external_handle on DelegateCtx#1526

Merged
maan2003 merged 2 commits intolinebender:masterfrom
maan2003:delegatectx-get-external-handle
Jan 11, 2021
Merged

Provide get_external_handle on DelegateCtx#1526
maan2003 merged 2 commits intolinebender:masterfrom
maan2003:delegatectx-get-external-handle

Conversation

@maan2003
Copy link
Collaborator

No description provided.

Copy link
Member

@cmyr cmyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

fn with_delegate<R, F>(&mut self, f: F) -> Option<R>
where
F: FnOnce(&mut Box<dyn AppDelegate<T>>, &mut T, &Env, &mut DelegateCtx) -> R,
F: FnOnce(&mut dyn AppDelegate<T>, &mut T, &Env, &mut DelegateCtx) -> R,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@maan2003 maan2003 merged commit 5fbbeb4 into linebender:master Jan 11, 2021
@maan2003 maan2003 deleted the delegatectx-get-external-handle branch January 11, 2021 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants