pub struct TextScaleGuard(/* private fields */);Expand description
Puts back the scale that was in force before install_text_scale, when dropped —
including while a panic unwinds, so one bad frame cannot leave a stale scale installed
for every frame after it.
Trait Implementations§
Source§impl Drop for TextScaleGuard
impl Drop for TextScaleGuard
Auto Trait Implementations§
impl Freeze for TextScaleGuard
impl RefUnwindSafe for TextScaleGuard
impl Send for TextScaleGuard
impl Sync for TextScaleGuard
impl Unpin for TextScaleGuard
impl UnsafeUnpin for TextScaleGuard
impl UnwindSafe for TextScaleGuard
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