pub struct LayerMap { /* private fields */ }Expand description
A layer remapping table — from → to rewrites every shape on
from to land on to. Layers not in the map pass through unchanged.
Implementations§
Source§impl LayerMap
impl LayerMap
pub fn new() -> Self
pub fn map(self, from: LayerIndex, to: LayerIndex) -> Self
pub fn translate(&self, layer: LayerIndex) -> LayerIndex
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayerMap
impl RefUnwindSafe for LayerMap
impl Send for LayerMap
impl Sync for LayerMap
impl Unpin for LayerMap
impl UnsafeUnpin for LayerMap
impl UnwindSafe for LayerMap
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