pub struct DebugLayoutSizeHint {
pub width: DebugLength,
pub height: DebugLength,
}Expand description
Serializable width/height hints exposed by a retained element.
§Examples
use ailloli_ui_devtools_core::{DebugLayoutSizeHint, DebugLength};
let hint = DebugLayoutSizeHint { width: DebugLength::Fill, height: DebugLength::Px(24.0) };
assert_eq!(hint.height, DebugLength::Px(24.0));Fields§
§width: DebugLengthDeclarative horizontal length.
height: DebugLengthDeclarative vertical length.
Trait Implementations§
Source§impl Clone for DebugLayoutSizeHint
impl Clone for DebugLayoutSizeHint
Source§fn clone(&self) -> DebugLayoutSizeHint
fn clone(&self) -> DebugLayoutSizeHint
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 DebugLayoutSizeHint
impl Debug for DebugLayoutSizeHint
Source§impl<'de> Deserialize<'de> for DebugLayoutSizeHint
impl<'de> Deserialize<'de> for DebugLayoutSizeHint
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<LayoutSizeHint> for DebugLayoutSizeHint
Converts both core size-hint axes.
impl From<LayoutSizeHint> for DebugLayoutSizeHint
Converts both core size-hint axes.
Source§impl PartialEq for DebugLayoutSizeHint
impl PartialEq for DebugLayoutSizeHint
Source§impl Serialize for DebugLayoutSizeHint
impl Serialize for DebugLayoutSizeHint
impl StructuralPartialEq for DebugLayoutSizeHint
Auto Trait Implementations§
impl Freeze for DebugLayoutSizeHint
impl RefUnwindSafe for DebugLayoutSizeHint
impl Send for DebugLayoutSizeHint
impl Sync for DebugLayoutSizeHint
impl Unpin for DebugLayoutSizeHint
impl UnwindSafe for DebugLayoutSizeHint
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.