Skip to content

Add get_ancestor_mut() API#80

Open
nathaniel-bennett wants to merge 1 commit into
michaelsproul:masterfrom
nathaniel-bennett:get_ancestor_mut
Open

Add get_ancestor_mut() API#80
nathaniel-bennett wants to merge 1 commit into
michaelsproul:masterfrom
nathaniel-bennett:get_ancestor_mut

Conversation

@nathaniel-bennett

Copy link
Copy Markdown

The current implementation only permits immutable borrows of ancestors. This PR adds a public function, get_ancestor_mut(), that returns a mutable borrow of a the nearest ancestor if any such ancestor exists.

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.

1 participant