pub struct IndentToken<'ui> { /* private fields */ }Expand description
Tracks an indentation scope started with Ui::begin_indent or
Ui::begin_indent_by.
Tokens from the same window may be ended in any order because each token removes its own
captured width. Cross-window cleanup is deferred until the originating window becomes current
again. Ui::with_indent and Ui::with_indent_by remain the canonical APIs for ordinary
scoped use.
Implementations§
Source§impl IndentToken<'_>
impl IndentToken<'_>
Trait Implementations§
Source§impl Drop for IndentToken<'_>
impl Drop for IndentToken<'_>
Auto Trait Implementations§
impl<'ui> !RefUnwindSafe for IndentToken<'ui>
impl<'ui> !Send for IndentToken<'ui>
impl<'ui> !Sync for IndentToken<'ui>
impl<'ui> !UnwindSafe for IndentToken<'ui>
impl<'ui> Freeze for IndentToken<'ui>
impl<'ui> Unpin for IndentToken<'ui>
impl<'ui> UnsafeUnpin for IndentToken<'ui>
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