Skip to main content

given_to_a_lean_function

Function given_to_a_lean_function 

Source
pub fn given_to_a_lean_function<T: KeptByLeanForAllThreads>()
Expand description

States that T is the type of a value that a trusted function gives to a Lean function it was passed.

The Lean function can make the value part of what it returns, and that goes back into Lean as it is. So the value can end up in a closed term as one that the trusted function returns can, and the type must be Sync for the same reason.