pub struct ColorStackToken<'a> { /* private fields */ }Expand description
Tracks a color pushed to the color 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> ColorStackToken<'a>
impl<'a> ColorStackToken<'a>
Trait Implementations§
Source§impl Drop for ColorStackToken<'_>
impl Drop for ColorStackToken<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ColorStackToken<'a>
impl<'a> !Send for ColorStackToken<'a>
impl<'a> !Sync for ColorStackToken<'a>
impl<'a> !UnwindSafe for ColorStackToken<'a>
impl<'a> Freeze for ColorStackToken<'a>
impl<'a> Unpin for ColorStackToken<'a>
impl<'a> UnsafeUnpin for ColorStackToken<'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