Function pinned_init::from_value
source · pub fn from_value<T>(value: T) -> impl Init<T>Expand description
Convert a value into an initializer.
Directly moves the value into the given slot.
Note that you can just write field: value, in all initializer macros. This function’s purpose
is to provide compatibility with APIs that only have PinInit/Init as parameters.