Crate scope_functions

Source
Expand description

This crate provides Kotlin-inspired scope functions for use in almost any situation.

Traits§

Apply
Run

Functions§

run
Calls the specified closure and returns its result.
try_run
Calls the specified closure and returns a Result.
try_with
Calls the specified closure with the given receiver and returns a Result.
try_with_mut
Calls the specified closure with the given mutable receiver and returns a Result.
with
Calls the specified closure with the given receiver and returns its result.
with_mut
Calls the specified closure with the given mutable receiver and returns its result.