pub struct Indents {
pub left: Option<Length>,
pub top: Option<Length>,
pub right: Option<Length>,
pub bottom: Option<Length>,
}Expand description
Optional indents from each edge of a container’s content box.
An indent replaces the container gap on the boundary it touches instead of
being added to it. Along the main axis, Length::Fill indents share free
space like flexible spacers, so indent_left(Length::Fill(1.0)) can push a
child to the end of a row without adding a separate crate::FlexItem.
Fields§
§left: Option<Length>Indent from the left edge, or None to use the default.
top: Option<Length>Indent from the top edge, or None to use the default.
right: Option<Length>Indent from the right edge, or None to use the default.
bottom: Option<Length>Indent from the bottom edge, or None to use the default.
Implementations§
Trait Implementations§
impl Copy for Indents
impl StructuralPartialEq for Indents
Auto Trait Implementations§
impl Forget for Indents
impl Freeze for Indents
impl Move for Indents
impl RefUnwindSafe for Indents
impl Send for Indents
impl Sync for Indents
impl Unpin for Indents
impl UnsafeUnpin for Indents
impl UnwindSafe for Indents
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