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