Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement <Rc<Any>>::downcast #44273

Merged
merged 2 commits into from
Sep 17, 2017
Merged

Implement <Rc<Any>>::downcast #44273

merged 2 commits into from
Sep 17, 2017

Commits on Sep 3, 2017

  1. alloc: Implement downcast Rc<Any> -> Rc<T>

    Implement downcast the like it exists for Box.
    
    The implementation avoids using into_raw/from_raw, because the pointer
    arithmetic which should cancel does not seem to optimize out at the
    moment.
    
    Since Rc<T> is never Send, only Rc<Any> and not Rc<Any + Send>
    implements downcast.
    bluss committed Sep 3, 2017
    Configuration menu
    Copy the full SHA
    758a0ce View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2017

  1. Configuration menu
    Copy the full SHA
    3a39d95 View commit details
    Browse the repository at this point in the history