pub struct MovableContent<T: 'static> { /* private fields */ }Expand description
State-preserving content that can move between composition locations.
Create one MovableContent::new and keep the handle alive (in
remember, a remember_mutable, or a field), then call
invoke at the location where it should compose.
Remembered state inside the content follows the handle instead of the call
site, so moving the invocation preserves it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for MovableContent<T>
impl<T> !Send for MovableContent<T>
impl<T> !Sync for MovableContent<T>
impl<T> !UnwindSafe for MovableContent<T>
impl<T> Forget for MovableContent<T>
impl<T> Freeze for MovableContent<T>
impl<T> Move for MovableContent<T>
impl<T> Unpin for MovableContent<T>
impl<T> UnsafeUnpin for MovableContent<T>where
Rc<MovableInner<T>>: UnsafeUnpin,
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