pub struct Indent<'a> { /* private fields */ }Expand description
A widget moved right by a number of cells.
The child gets the width that is left, but never less than 1 cell. So a child still draws when the indent is as wide as the context. A blank line stays blank.
The child may be borrowed, as in Indent::new(2, &widget).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Indent<'a>
impl<'a> !Send for Indent<'a>
impl<'a> !Sync for Indent<'a>
impl<'a> !UnwindSafe for Indent<'a>
impl<'a> Forget for Indent<'a>
impl<'a> Freeze for Indent<'a>
impl<'a> Move for Indent<'a>
impl<'a> Unpin for Indent<'a>
impl<'a> UnsafeUnpin for Indent<'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