pub struct SpaceTree<'a> {
pub cells: Vec<Cell<'a>>,
pub surfaces: Vec<Placed<'a>>,
}Expand description
The spaces of a window’s scene and the scenes behind its doorways, and their mesh surfaces, in the order the composition holds them.
Fields§
§cells: Vec<Cell<'a>>The spaces; the first is the window scene’s own.
surfaces: Vec<Placed<'a>>The mesh surfaces, in draw order.
Implementations§
Source§impl<'a> SpaceTree<'a>
impl<'a> SpaceTree<'a>
Sourcepub fn of(scene_layer: &'a LayerNode) -> Option<Self>
pub fn of(scene_layer: &'a LayerNode) -> Option<Self>
The spaces and surfaces of the scene scene_layer shows; None
when it shows none.
Sourcepub fn holds_scene(&self, layer: &LayerNode) -> bool
pub fn holds_scene(&self, layer: &LayerNode) -> bool
Whether layer is one of the tree’s scenes.
Sourcepub fn cell_along(&self, path: &[usize]) -> usize
pub fn cell_along(&self, path: &[usize]) -> usize
The space an eye that walked through the doorways of the scene nodes
path stands in: as far along the path as its doorways still lead.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SpaceTree<'a>
impl<'a> !Send for SpaceTree<'a>
impl<'a> !Sync for SpaceTree<'a>
impl<'a> !UnwindSafe for SpaceTree<'a>
impl<'a> Freeze for SpaceTree<'a>
impl<'a> Unpin for SpaceTree<'a>
impl<'a> UnsafeUnpin for SpaceTree<'a>
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