pub struct BoundsRegion {
pub quadrant: String,
pub relative_x: f64,
pub relative_y: f64,
}Expand description
Coarse spatial region for resilient element targeting. Uses normalized coordinates (0.0-1.0) so references survive resolution changes.
Fields§
§quadrant: StringSpatial quadrant: “top-left”, “top-center”, “top-right”, “center-left”, “center”, “center-right”, “bottom-left”, “bottom-center”, “bottom-right”
relative_x: f64Normalized horizontal position (0.0 = left edge, 1.0 = right edge).
relative_y: f64Normalized vertical position (0.0 = top edge, 1.0 = bottom edge).
Trait Implementations§
Source§impl Clone for BoundsRegion
impl Clone for BoundsRegion
Source§fn clone(&self) -> BoundsRegion
fn clone(&self) -> BoundsRegion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BoundsRegion
impl Debug for BoundsRegion
Source§impl<'de> Deserialize<'de> for BoundsRegion
impl<'de> Deserialize<'de> for BoundsRegion
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
Auto Trait Implementations§
impl Freeze for BoundsRegion
impl RefUnwindSafe for BoundsRegion
impl Send for BoundsRegion
impl Sync for BoundsRegion
impl Unpin for BoundsRegion
impl UnsafeUnpin for BoundsRegion
impl UnwindSafe for BoundsRegion
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