pub struct DebugPoint {
pub x: f32,
pub y: f32,
}Expand description
Serializable point in logical viewport coordinates.
§Examples
use ailloli_ui_devtools_core::DebugPoint;
let point = DebugPoint { x: 12.0, y: 24.0 };
assert_eq!(point.x, 12.0);Fields§
§x: f32Horizontal coordinate in logical pixels.
y: f32Vertical coordinate in logical pixels.
Trait Implementations§
Source§impl Clone for DebugPoint
impl Clone for DebugPoint
Source§fn clone(&self) -> DebugPoint
fn clone(&self) -> DebugPoint
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 DebugPoint
impl Debug for DebugPoint
Source§impl<'de> Deserialize<'de> for DebugPoint
impl<'de> Deserialize<'de> for DebugPoint
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<Point> for DebugPoint
Copies core point components verbatim.
impl From<Point> for DebugPoint
Copies core point components verbatim.
Source§impl PartialEq for DebugPoint
impl PartialEq for DebugPoint
Source§impl Serialize for DebugPoint
impl Serialize for DebugPoint
impl Copy for DebugPoint
impl StructuralPartialEq for DebugPoint
Auto Trait Implementations§
impl Freeze for DebugPoint
impl RefUnwindSafe for DebugPoint
impl Send for DebugPoint
impl Sync for DebugPoint
impl Unpin for DebugPoint
impl UnwindSafe for DebugPoint
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.