pub struct Flex {
pub children: Vec<String>,
pub direction: FlexDirection,
pub gap: String,
pub padding: String,
pub background_color: String,
}Fields§
§children: Vec<String>§direction: FlexDirection§gap: String§padding: String§background_color: StringImplementations§
Source§impl Flex
impl Flex
pub fn new() -> Flex
pub fn direction(self, direction: FlexDirection) -> Flex
pub fn child(self, child: String) -> Flex
pub fn children(self, children: Vec<String>) -> Flex
pub fn gap(self, gap: String) -> Flex
pub fn gap_px(self, gap: i32) -> Flex
pub fn padding(self, padding: String) -> Flex
pub fn background_color(self, color: String) -> Flex
Trait Implementations§
impl StructuralPartialEq for Flex
Auto Trait Implementations§
impl Freeze for Flex
impl RefUnwindSafe for Flex
impl Send for Flex
impl Sync for Flex
impl Unpin for Flex
impl UnwindSafe for Flex
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