pub struct DebugLayoutInfo {
pub constraints_in: Option<DebugConstraints>,
pub constraints_final: Option<DebugConstraints>,
pub layout_size: DebugSize,
}Expand description
Optional layout-pass inputs and measured output for one element.
§Examples
use ailloli_ui_devtools_core::{DebugLayoutInfo, DebugSize};
let info = DebugLayoutInfo { constraints_in: None, constraints_final: None,
layout_size: DebugSize { w: 10.0, h: 20.0 } };
assert_eq!(info.layout_size.w, 10.0);Fields§
§constraints_in: Option<DebugConstraints>Constraints entering the layout pass, when runtime diagnostics retained them.
constraints_final: Option<DebugConstraints>Constraints after widget adjustment, when recorded.
layout_size: DebugSizeSize returned by the recorded layout pass, in logical pixels.
Trait Implementations§
Source§impl Clone for DebugLayoutInfo
impl Clone for DebugLayoutInfo
Source§fn clone(&self) -> DebugLayoutInfo
fn clone(&self) -> DebugLayoutInfo
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 DebugLayoutInfo
impl Debug for DebugLayoutInfo
Source§impl<'de> Deserialize<'de> for DebugLayoutInfo
impl<'de> Deserialize<'de> for DebugLayoutInfo
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 DebugLayoutInfo
impl PartialEq for DebugLayoutInfo
Source§impl Serialize for DebugLayoutInfo
impl Serialize for DebugLayoutInfo
impl StructuralPartialEq for DebugLayoutInfo
Auto Trait Implementations§
impl Freeze for DebugLayoutInfo
impl RefUnwindSafe for DebugLayoutInfo
impl Send for DebugLayoutInfo
impl Sync for DebugLayoutInfo
impl Unpin for DebugLayoutInfo
impl UnwindSafe for DebugLayoutInfo
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.