pub struct LayerTree {
pub layers: Arena<LayerId, Layer>,
pub root: Option<LayerId>,
/* private fields */
}Expand description
Layer 树
与 element 树平行,只覆盖 RepaintBoundary 节点。 顶层 root layer 是虚拟容器,包含所有顶层 RepaintBoundary 创建的 layer。
Fields§
§layers: Arena<LayerId, Layer>§root: Option<LayerId>顶层 root layer (虚拟,本身不渲染,作为所有顶层 RepaintBoundary layer 的父)
Implementations§
Auto Trait Implementations§
impl !Send for LayerTree
impl !Sync for LayerTree
impl Freeze for LayerTree
impl RefUnwindSafe for LayerTree
impl Unpin for LayerTree
impl UnsafeUnpin for LayerTree
impl UnwindSafe for LayerTree
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