pub struct OwnedDrawData { /* private fields */ }Expand description
A container for a heap-allocated deep copy of a DrawData struct.
Notes on thread-safety:
- This type intentionally does NOT implement
Send/Sync. Although draw lists are cloned, draw commands can still carry raw texture references and backend-specific assumptions. - The context-owned texture request list is not copied. Use
crate::render::snapshot::FrameSnapshotwhen you need texture requests or thread-safe rendering data detached from the ImGui context.
The underlying copy is released when this struct is dropped.
Implementations§
Trait Implementations§
Source§impl Default for OwnedDrawData
impl Default for OwnedDrawData
Source§impl Drop for OwnedDrawData
impl Drop for OwnedDrawData
Source§impl From<&DrawData> for OwnedDrawData
impl From<&DrawData> for OwnedDrawData
Auto Trait Implementations§
impl Freeze for OwnedDrawData
impl RefUnwindSafe for OwnedDrawData
impl !Send for OwnedDrawData
impl !Sync for OwnedDrawData
impl Unpin for OwnedDrawData
impl UnsafeUnpin for OwnedDrawData
impl UnwindSafe for OwnedDrawData
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