pub struct use_shared_ref_with<T, F: FnOnce() -> T>(pub F);
Expand description
use SharedRef
with an FnOnce
which returns the initial value.
Tuple Fields§
§0: F
Trait Implementations§
fn update_hook(self, _hook: Pin<&mut Self::Hook>)
type Uninitialized = SharedRefUninitialized<T>
fn h( self, hook: Pin<&mut Self::Uninitialized>, ) -> <Self::Hook as HookValue<'_>>::Value
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more