pub struct LayerSpec {
pub source: Rc<RefCell<dyn LayerBufferSource>>,
pub targets: Vec<Target>,
}Expand description
One layer across one or more scenes.
Fields§
§source: Rc<RefCell<dyn LayerBufferSource>>The content. Shared across every target — that is what makes it a mirror rather than two layers that happen to look alike.
targets: Vec<Target>Where it goes. At least one.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LayerSpec
impl !Send for LayerSpec
impl !Sync for LayerSpec
impl !UnwindSafe for LayerSpec
impl Freeze for LayerSpec
impl Unpin for LayerSpec
impl UnsafeUnpin for LayerSpec
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