Expand description
This crate provides Kotlin-inspired scope functions for use in almost any situation.
Traits§
Functions§
- run
- Calls the specified
closure
and returns its result. - try_run
- Calls the specified
closure
and returns aResult
. - try_
with - Calls the specified
closure
with the givenreceiver
and returns aResult
. - try_
with_ mut - Calls the specified
closure
with the given mutablereceiver
and returns aResult
. - with
- Calls the specified
closure
with the givenreceiver
and returns its result. - with_
mut - Calls the specified
closure
with the given mutablereceiver
and returns its result.