pub struct Layer {
pub z: f32,
pub kind: LayerKind,
}Expand description
One stackable layer: its paint z (lower draws first / underneath) and its
LayerKind. The renderer composites layers in ascending z.
Fields§
§z: f32Paint order key — ascending z paints back→front (a higher-z graph layer composites over a lower-z map layer). Ties keep insertion order (stable).
kind: LayerKindImplementations§
Trait Implementations§
impl Copy for Layer
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
impl UnwindSafe for Layer
Blanket Implementations§
impl<T> Allocation for T
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