Struct hooks::shared_ref::UseSharedRefWith
source · pub struct UseSharedRefWith<T, F: FnOnce() -> T>(pub F);
Expand description
use SharedRef
with an FnOnce
which returns the initial value.
Tuple Fields§
§0: F
pub struct UseSharedRefWith<T, F: FnOnce() -> T>(pub F);
use SharedRef
with an FnOnce
which returns the initial value.
0: F