pub struct DebugConstraints {
pub min_w: f32,
pub max_w: f32,
pub min_h: f32,
pub max_h: f32,
}Expand description
Serializable min/max layout constraints in logical pixels.
Maximum values may be positive infinity to mean unbounded; no normalization is performed during conversion.
§Examples
use ailloli_ui_devtools_core::DebugConstraints;
let constraints = DebugConstraints { min_w: 0.0, max_w: 800.0, min_h: 20.0, max_h: 600.0 };
assert!(constraints.min_w <= constraints.max_w);Fields§
§min_w: f32Minimum width in logical pixels.
max_w: f32Maximum width in logical pixels.
min_h: f32Minimum height in logical pixels.
max_h: f32Maximum height in logical pixels.
Trait Implementations§
Source§impl Clone for DebugConstraints
impl Clone for DebugConstraints
Source§fn clone(&self) -> DebugConstraints
fn clone(&self) -> DebugConstraints
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 DebugConstraints
impl Debug for DebugConstraints
Source§impl<'de> Deserialize<'de> for DebugConstraints
impl<'de> Deserialize<'de> for DebugConstraints
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<Constraints> for DebugConstraints
Copies core constraint components verbatim.
impl From<Constraints> for DebugConstraints
Copies core constraint components verbatim.
Source§impl PartialEq for DebugConstraints
impl PartialEq for DebugConstraints
Source§impl Serialize for DebugConstraints
impl Serialize for DebugConstraints
impl Copy for DebugConstraints
impl StructuralPartialEq for DebugConstraints
Auto Trait Implementations§
impl Freeze for DebugConstraints
impl RefUnwindSafe for DebugConstraints
impl Send for DebugConstraints
impl Sync for DebugConstraints
impl Unpin for DebugConstraints
impl UnwindSafe for DebugConstraints
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.