pub struct OwnedStateStorage { /* private fields */ }Expand description
Owns an ImGuiStorage and clears it on drop.
This is useful when you want to keep widget state outside of the current
window storage (e.g. sharing state across windows or providing custom storage
for a widget subtree via Ui::push_state_storage).
Implementations§
Source§impl OwnedStateStorage
impl OwnedStateStorage
pub fn new() -> Self
pub fn as_mut(&mut self) -> &mut ImGuiStorage
pub fn as_ref(&self) -> &ImGuiStorage
pub fn as_raw_mut(&mut self) -> *mut ImGuiStorage
pub fn as_raw(&self) -> *const ImGuiStorage
Trait Implementations§
Source§impl Debug for OwnedStateStorage
impl Debug for OwnedStateStorage
Source§impl Default for OwnedStateStorage
impl Default for OwnedStateStorage
Source§fn default() -> OwnedStateStorage
fn default() -> OwnedStateStorage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OwnedStateStorage
impl RefUnwindSafe for OwnedStateStorage
impl !Send for OwnedStateStorage
impl !Sync for OwnedStateStorage
impl Unpin for OwnedStateStorage
impl UnsafeUnpin for OwnedStateStorage
impl UnwindSafe for OwnedStateStorage
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