pub struct ScreenUpdate {
pub renderable: DynRenderable,
}Expand description
Represents an update to a screen display.
Used by ScreenContext::update() (and Screen::update()) to replace
the displayed content without creating a new Screen.
Fields§
§renderable: DynRenderableThe new renderable to display.
Implementations§
Source§impl ScreenUpdate
impl ScreenUpdate
Sourcepub fn new(renderable: impl Renderable + Send + Sync + 'static) -> Self
pub fn new(renderable: impl Renderable + Send + Sync + 'static) -> Self
Create a new ScreenUpdate wrapping the given renderable.
Trait Implementations§
Source§impl Debug for ScreenUpdate
impl Debug for ScreenUpdate
Source§impl<R> From<R> for ScreenUpdate
impl<R> From<R> for ScreenUpdate
Auto Trait Implementations§
impl Freeze for ScreenUpdate
impl !RefUnwindSafe for ScreenUpdate
impl Send for ScreenUpdate
impl Sync for ScreenUpdate
impl Unpin for ScreenUpdate
impl UnsafeUnpin for ScreenUpdate
impl !UnwindSafe for ScreenUpdate
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