pub struct FrameArenaManager { /* private fields */ }Expand description
Double-buffered generational arena for zero-allocation UI frame reconciliation.
Implementations§
Source§impl FrameArenaManager
impl FrameArenaManager
pub fn new(capacity_per_frame: usize) -> FrameArenaManager
pub fn active_arena(&self) -> &BumpArena
pub fn active_arena_mut(&mut self) -> &mut BumpArena
pub fn previous_arena(&self) -> &BumpArena
pub fn previous_arena_mut(&mut self) -> &mut BumpArena
pub fn frame_epoch(&self) -> u64
Sourcepub fn swap_and_reset(&mut self)
pub fn swap_and_reset(&mut self)
Swaps the active/previous frame buffers and resets the new frame’s arena in O(1).
Auto Trait Implementations§
impl !Sync for FrameArenaManager
impl Forget for FrameArenaManager
impl Freeze for FrameArenaManager
impl Move for FrameArenaManager
impl RefUnwindSafe for FrameArenaManager
impl Send for FrameArenaManager
impl Unpin for FrameArenaManager
impl UnsafeUnpin for FrameArenaManager
impl UnwindSafe for FrameArenaManager
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