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 additional methods to the Demand type #99583

Merged
merged 2 commits into from
Sep 2, 2022

Commits on Aug 23, 2022

  1. Support eager and lazy methods for providing references and values

    There are times where computing a value may be cheap, or where
    computing a reference may be expensive, so this fills out the
    possibilities.
    shepmaster committed Aug 23, 2022
    Configuration menu
    Copy the full SHA
    38de102 View commit details
    Browse the repository at this point in the history
  2. Add `Provider::{would_be_satisfied_by_value_of,would_be_satisfied_by_…

    …ref_of}`
    
    While the `provide_*` methods already short-circuit when a value has
    been provided, there are times where an expensive computation is
    needed to determine if the `provide_*` method can even be called.
    shepmaster committed Aug 23, 2022
    Configuration menu
    Copy the full SHA
    260ec93 View commit details
    Browse the repository at this point in the history