pub struct ItemFlagStackToken<'a> { /* private fields */ }Expand description
Tracks item flags pushed with Ui::push_item_flag.
§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> ItemFlagStackToken<'a>
impl<'a> ItemFlagStackToken<'a>
Sourcepub fn end(self)
pub fn end(self)
Pops item flags pushed with Ui::push_item_flag.
§Panics
Panics before FFI if a later token on the same native resource stack is active or this token is no longer in its originating native scope.
Trait Implementations§
Source§impl Drop for ItemFlagStackToken<'_>
impl Drop for ItemFlagStackToken<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ItemFlagStackToken<'a>
impl<'a> !Send for ItemFlagStackToken<'a>
impl<'a> !Sync for ItemFlagStackToken<'a>
impl<'a> !UnwindSafe for ItemFlagStackToken<'a>
impl<'a> Freeze for ItemFlagStackToken<'a>
impl<'a> Unpin for ItemFlagStackToken<'a>
impl<'a> UnsafeUnpin for ItemFlagStackToken<'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