pub struct Room { /* private fields */ }Implementations§
Source§impl Room
impl Room
pub fn with_current_mut<T, F>(f: F) -> Option<T>
pub fn with_current<T, F>(f: F) -> Option<T>
pub fn contain_panics<T, F>(f: F) -> Option<T>where
F: FnOnce() -> T,
pub fn alloc<T: 'static>(&mut self, value: T) -> Handle<T>
pub fn get<T: 'static>(&self, handle: Handle<T>) -> Option<Ref<'_, T>>
pub fn get_mut<T: 'static>(&self, handle: Handle<T>) -> Option<RefMut<'_, T>>
pub fn take<T: 'static>(&mut self, handle: Handle<T>) -> Option<T>
Auto Trait Implementations§
impl !RefUnwindSafe for Room
impl !Send for Room
impl !Sync for Room
impl !UnwindSafe for Room
impl Freeze for Room
impl Unpin for Room
impl UnsafeUnpin for Room
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