pub struct EntryScope<K: NavKey> { /* private fields */ }Implementations§
Source§impl<K: NavKey> EntryScope<K>
impl<K: NavKey> EntryScope<K>
pub fn id(&self) -> u64
pub fn key(&self) -> &K
pub fn remember_saveable<T: 'static + Clone>( &self, slot: &'static str, init: impl FnOnce() -> T, ) -> Rc<RefCell<T>>
pub fn set_result<T: 'static>(&self, slot: &'static str, v: T)
pub fn take_result<T: 'static>(&self, slot: &'static str) -> Option<T>
Auto Trait Implementations§
impl<K> Freeze for EntryScope<K>where
K: Freeze,
impl<K> !RefUnwindSafe for EntryScope<K>
impl<K> !Send for EntryScope<K>
impl<K> !Sync for EntryScope<K>
impl<K> Unpin for EntryScope<K>where
K: Unpin,
impl<K> UnsafeUnpin for EntryScope<K>where
K: UnsafeUnpin,
impl<K> !UnwindSafe for EntryScope<K>
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