pub trait Apply: Sized { // Required method fn apply<F, R>(self, f: F) -> R where F: FnOnce(Self) -> R; }
Apply a function to anything, like let in Kotlin.
let