pub struct PreviewTarget { /* private fields */ }Expand description
The offscreen a frame is drawn into while a preview is open, plus the view and identity its two consumers need.
Sized to the output’s configured target and never resized in place: the
copy’s extent is fixed against widthxheight, so a renderer resize
discards this and builds another. super::Renderer::open_preview and
resize are the only things that construct one.
Implementations§
Source§impl PreviewTarget
impl PreviewTarget
Auto Trait Implementations§
impl Freeze for PreviewTarget
impl !RefUnwindSafe for PreviewTarget
impl Send for PreviewTarget
impl Sync for PreviewTarget
impl Unpin for PreviewTarget
impl UnsafeUnpin for PreviewTarget
impl !UnwindSafe for PreviewTarget
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