pub struct Flex {
pub grow: Number,
pub shrink: Number,
pub basis: Number,
}Expand description
Flexbox sizing configuration with grow, shrink, and basis values.
Fields§
§grow: NumberFlex grow factor.
shrink: NumberFlex shrink factor.
basis: NumberFlex basis size.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Flex
impl<'de> Deserialize<'de> for Flex
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> From<IfExpression<T, Responsive>> for Flexwhere
T: Into<Self>,
Available on crate feature logic only.
impl<T> From<IfExpression<T, Responsive>> for Flexwhere
T: Into<Self>,
Available on crate feature
logic only.Source§fn from(if_expr: IfExpression<T, Responsive>) -> Self
fn from(if_expr: IfExpression<T, Responsive>) -> Self
Converts to this type from the input type.
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 UnsafeUnpin 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