pub struct SurfaceGuard { /* private fields */ }Expand description
Holds a surface installed — see MediaQuery::install. Dropping it puts back the
description and the reader’s font size that were in force before.
The two live in one guard so that they cannot be held for different lengths of time, which is exactly how they came apart in milestone 407.
Auto Trait Implementations§
impl Freeze for SurfaceGuard
impl RefUnwindSafe for SurfaceGuard
impl Send for SurfaceGuard
impl Sync for SurfaceGuard
impl Unpin for SurfaceGuard
impl UnsafeUnpin for SurfaceGuard
impl UnwindSafe for SurfaceGuard
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