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