Struct hooks::shared_ref::use_shared_ref
source · pub struct use_shared_ref<T>(pub T);
Expand description
use SharedRef
with initial value.
Tuple Fields§
§0: T
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§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more