pub struct SharedItem<T: WorkspaceItem> { /* private fields */ }Expand description
Rc<RefCell<T>> adapter: registers shared item state — the ownership
pattern the Python bindings use for FigureView — as a workspace item.
id/title/closable are snapshotted at construction because RefCell
borrows cannot escape the trait’s &self signatures; pane identity is
treated as stable for the workspace’s lifetime.
Implementations§
Trait Implementations§
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