pub struct ItemWidthStackToken<'a> { /* private fields */ }Expand description
Tracks a change made with Ui::push_item_width that can be popped
by calling ItemWidthStackToken::end or 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> ItemWidthStackToken<'a>
impl<'a> ItemWidthStackToken<'a>
Sourcepub fn end(self)
pub fn end(self)
Pops an item width change made with Ui::push_item_width.
§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 ItemWidthStackToken<'_>
impl Drop for ItemWidthStackToken<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ItemWidthStackToken<'a>
impl<'a> !Send for ItemWidthStackToken<'a>
impl<'a> !Sync for ItemWidthStackToken<'a>
impl<'a> !UnwindSafe for ItemWidthStackToken<'a>
impl<'a> Freeze for ItemWidthStackToken<'a>
impl<'a> Unpin for ItemWidthStackToken<'a>
impl<'a> UnsafeUnpin for ItemWidthStackToken<'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