pub struct AnySurface { /* private fields */ }Expand description
A surface whose manifest lists both models ("model": ["pixels", "cells"]): the viewer picks one per its capabilities and may switch
(graphics arriving or leaving), which the plugin sees as a
crate::Event::Resize. AnySurface::get hands out the surface in
the model the viewer uses now.
Implementations§
Source§impl AnySurface
impl AnySurface
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AnySurface
impl !Send for AnySurface
impl !Sync for AnySurface
impl !UnwindSafe for AnySurface
impl Freeze for AnySurface
impl Unpin for AnySurface
impl UnsafeUnpin for AnySurface
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