pub enum LayoutDetails {
Box,
Flex {
axis: String,
available_main: Option<f32>,
non_flex_extent: f32,
flexible_extent: f32,
used_extent: f32,
remaining_extent: f32,
overflow: f32,
children: Vec<FlexChildInspection>,
},
Stack {
alignment: [f32; 2],
indexed_active: Option<usize>,
children: Vec<StackChildInspection>,
},
Positioned {
left: Option<f32>,
right: Option<f32>,
top: Option<f32>,
bottom: Option<f32>,
width: Option<f32>,
height: Option<f32>,
},
Transform {
matrix: [f32; 6],
determinant: f32,
invertible: bool,
},
Fitted {
fit: String,
alignment: [f32; 2],
source_size: Option<[f32; 2]>,
destination_size: [f32; 2],
matrix: [f32; 6],
determinant: f32,
invertible: bool,
},
Scroll {
axis: String,
viewport_extent: f32,
content_extent: f32,
offset: f32,
min_scroll: f32,
max_scroll: f32,
},
LazyViewport {
item_count: usize,
materialized_start: usize,
materialized_end: usize,
materialized_items: usize,
viewport_extent: f32,
cache_extent: f32,
scroll_offset: f32,
},
Text {
text_length: usize,
max_lines: Option<usize>,
overflow: String,
line_count: Option<usize>,
},
Custom {
layout_kind: String,
},
}Expand description
Layout-strategy-specific, compact inspection data. Every coordinate and allocation comes from the completed retained layout pass; the DevTools UI only visualizes this data.
Variants§
Box
Flex
Fields
§
children: Vec<FlexChildInspection>Stack
Positioned
Fields
Transform
Fitted
Fields
Scroll
Fields
LazyViewport
Fields
Text
Custom
Trait Implementations§
Source§impl Clone for LayoutDetails
impl Clone for LayoutDetails
Source§impl Debug for LayoutDetails
impl Debug for LayoutDetails
Source§impl<'de> Deserialize<'de> for LayoutDetails
impl<'de> Deserialize<'de> for LayoutDetails
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 PartialEq for LayoutDetails
impl PartialEq for LayoutDetails
Source§impl Serialize for LayoutDetails
impl Serialize for LayoutDetails
impl StructuralPartialEq for LayoutDetails
Auto Trait Implementations§
impl Forget for LayoutDetails
impl Freeze for LayoutDetails
impl RefUnwindSafe for LayoutDetails
impl Send for LayoutDetails
impl Sync for LayoutDetails
impl Unpin for LayoutDetails
impl UnsafeUnpin for LayoutDetails
impl UnwindSafe for LayoutDetails
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