pub struct View {
pub style: Style,
pub children: Vec<Component>,
pub break_before: BreakType,
pub id: Option<String>,
pub fixed: bool,
pub wrap: Option<bool>,
pub min_presence_ahead: f32,
}Expand description
Flexbox container.
Fields§
§style: Style§children: Vec<Component>§break_before: BreakTypeWhether to break before this element
id: Option<String>§fixed: bool§wrap: Option<bool>Whether this element can be split between pages (default: true)
min_presence_ahead: f32Desired minimum remaining presence (in points) after this element.
Implementations§
Source§impl View
impl View
Sourcepub fn with_style(self, style: Style) -> Self
pub fn with_style(self, style: Style) -> Self
Set the style for the view.
Sourcepub fn with_child(self, child: impl Into<Component>) -> Self
pub fn with_child(self, child: impl Into<Component>) -> Self
Append a child and return the view for chaining.
Trait Implementations§
Source§impl From<ViewBuilder> for View
impl From<ViewBuilder> for View
Source§fn from(value: ViewBuilder) -> Self
fn from(value: ViewBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for View
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnwindSafe for View
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