pub struct DebugSize {
pub w: f32,
pub h: f32,
}Expand description
Serializable logical width and height.
§Examples
use ailloli_ui_devtools_core::DebugSize;
let size = DebugSize { w: 640.0, h: 480.0 };
assert_eq!(size.h, 480.0);Fields§
§w: f32Width in logical pixels.
h: f32Height in logical pixels.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DebugSize
impl<'de> Deserialize<'de> for DebugSize
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
impl Copy for DebugSize
impl StructuralPartialEq for DebugSize
Auto Trait Implementations§
impl Freeze for DebugSize
impl RefUnwindSafe for DebugSize
impl Send for DebugSize
impl Sync for DebugSize
impl Unpin for DebugSize
impl UnwindSafe for DebugSize
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.