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

Add lazy, cheaply guarded proxy-conversions. #202

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jun 27, 2024

  1. Add lazy, cheaply guarded proxy-conversions.

    This introduces lazy and cheaply guarded proxy-conversions.
    
    It adds `ObjectProxies` which extends `AccessibleProxy
    
    We have an easy conversion from `ObjectRef` to `AccessibleProxy`
    
    `AccessibleProxy::get_interfaces` gives insight into which interfaces are
    unokenebted by the object.
    
    `ObjectProxies::proxies` returns `Proxies`, a struct that can contain zero or
    more proxies to the objects supported interfaces.
    
    The proxies are created only when needed and the check against the `InterfaceSet`
    is a cheap bitwise operation.
    luukvanderduim committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    efbff96 View commit details
    Browse the repository at this point in the history