pub struct FontStackToken<'a> { /* private fields */ }Expand description
Tracks a font pushed to the font stack that can be popped by calling .end()
or by dropping.
§Drop order
Tokens sharing this native resource stack must finish in reverse creation order. Window- or table-local tokens must also finish in their originating scope. Prefer the corresponding closure helper when available. Invalid use panics before FFI, with cleanup deferred when the original scope can be restored safely.
Implementations§
Source§impl<'a> FontStackToken<'a>
impl<'a> FontStackToken<'a>
Trait Implementations§
Source§impl Drop for FontStackToken<'_>
impl Drop for FontStackToken<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for FontStackToken<'a>
impl<'a> !Send for FontStackToken<'a>
impl<'a> !Sync for FontStackToken<'a>
impl<'a> !UnwindSafe for FontStackToken<'a>
impl<'a> Freeze for FontStackToken<'a>
impl<'a> Unpin for FontStackToken<'a>
impl<'a> UnsafeUnpin for FontStackToken<'a>
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