pub struct DebugFlexItem {
pub flex_grow: f32,
pub flex_shrink: f32,
pub flex_basis: DebugLength,
pub align_self: Option<String>,
}Expand description
Serializable flex-item inputs attached to a retained child.
§Examples
use ailloli_ui_devtools_core::{DebugFlexItem, DebugLength};
let item = DebugFlexItem { flex_grow: 1.0, flex_shrink: 0.0,
flex_basis: DebugLength::Auto, align_self: None };
assert_eq!(item.align_self, None);Fields§
§flex_grow: f32Non-negative grow factor copied from computed style.
flex_shrink: f32Non-negative shrink factor copied from computed style.
flex_basis: DebugLengthPreferred main-axis basis.
align_self: Option<String>Lowercase alignment name, or None to inherit the container.
Trait Implementations§
Source§impl Clone for DebugFlexItem
impl Clone for DebugFlexItem
Source§fn clone(&self) -> DebugFlexItem
fn clone(&self) -> DebugFlexItem
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DebugFlexItem
impl Debug for DebugFlexItem
Source§impl<'de> Deserialize<'de> for DebugFlexItem
impl<'de> Deserialize<'de> for DebugFlexItem
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 From<FlexItemStyle> for DebugFlexItem
Converts numeric flex values, basis, and optional alignment name.
impl From<FlexItemStyle> for DebugFlexItem
Converts numeric flex values, basis, and optional alignment name.
Source§impl PartialEq for DebugFlexItem
impl PartialEq for DebugFlexItem
Source§impl Serialize for DebugFlexItem
impl Serialize for DebugFlexItem
impl StructuralPartialEq for DebugFlexItem
Auto Trait Implementations§
impl Freeze for DebugFlexItem
impl RefUnwindSafe for DebugFlexItem
impl Send for DebugFlexItem
impl Sync for DebugFlexItem
impl Unpin for DebugFlexItem
impl UnwindSafe for DebugFlexItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.