pub struct FocusTraversalScratch {
pub dfs_stack: Vec<(NodeId, bool)>,
pub positive_buf: Vec<(i16, NodeId)>,
pub positive_sort_buf: Vec<(i16, NodeId)>,
pub natural_buf: Vec<NodeId>,
pub scroll_dirty: Vec<NodeId>,
}Expand description
Reusable scratch buffers owned by LaidOutScene so warm focus traversal runs with 0 heap
allocations.
Fields§
§dfs_stack: Vec<(NodeId, bool)>§positive_buf: Vec<(i16, NodeId)>§positive_sort_buf: Vec<(i16, NodeId)>§natural_buf: Vec<NodeId>§scroll_dirty: Vec<NodeId>Implementations§
Trait Implementations§
Source§impl Debug for FocusTraversalScratch
impl Debug for FocusTraversalScratch
Auto Trait Implementations§
impl Forget for FocusTraversalScratch
impl Freeze for FocusTraversalScratchwhere
*const u8 is !null: Freeze,
PhantomData<(NodeId, bool)>: Freeze,
PhantomData<(i16, NodeId)>: Freeze,
PhantomData<NodeId>: Freeze,
impl Move for FocusTraversalScratch
impl RefUnwindSafe for FocusTraversalScratch
impl Send for FocusTraversalScratchwhere
RawVecInner: Send,
impl Sync for FocusTraversalScratchwhere
RawVecInner: Sync,
impl Unpin for FocusTraversalScratch
impl UnsafeUnpin for FocusTraversalScratchwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(NodeId, bool)>: UnsafeUnpin,
PhantomData<(i16, NodeId)>: UnsafeUnpin,
PhantomData<NodeId>: UnsafeUnpin,
impl UnwindSafe for FocusTraversalScratchwhere
RawVecInner: UnwindSafe,
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