pub struct Row {
pub children: Vec<Element>,
pub gap: f32,
pub align: Align,
pub common: Common,
}Fields§
§children: Vec<Element>§gap: f32§align: Align§common: CommonImplementations§
Source§impl Row
impl Row
pub fn new() -> Self
pub fn child(self, child: impl Into<Element>) -> Self
pub fn children( self, children: impl IntoIterator<Item = impl Into<Element>>, ) -> Self
pub fn gap(self, gap: f32) -> Self
pub fn align(self, align: Align) -> Self
pub fn width(self, width: f32) -> Self
pub fn height(self, height: f32) -> Self
pub fn flex(self, factor: f32) -> Self
pub fn padding(self, padding: f32) -> Self
pub fn overflow(self, overflow: Overflow) -> Self
pub fn background(self, color: Color) -> Self
pub fn border(self, border: Border) -> Self
Sourcepub fn keep_with_next(self) -> Self
pub fn keep_with_next(self) -> Self
See plan/05-overflow-and-robustness.md Grundprinzip 9: only
placed on a page if the following sibling also still fits.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Row
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnsafeUnpin for Row
impl UnwindSafe for Row
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