pub struct MeasureRecord {
pub label: String,
pub monitor: usize,
pub px: LineRecord,
pub global_px: LineRecord,
pub length_px: f64,
pub dx: i32,
pub dy: i32,
pub angle_deg: f64,
}Expand description
One measurement, with its derived values precomputed so a consumer never re-derives geometry to read a number off a ruler.
Fields§
§label: String§monitor: usize§px: LineRecordEndpoints in monitor-local physical pixels.
global_px: LineRecordThe same endpoints on the global desktop grid.
length_px: f64§dx: i32§dy: i32§angle_deg: f64Degrees in [0, 360), 0 pointing right along +X, increasing
clockwise because screen Y grows downward.
Trait Implementations§
Source§impl Clone for MeasureRecord
impl Clone for MeasureRecord
Source§fn clone(&self) -> MeasureRecord
fn clone(&self) -> MeasureRecord
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 MeasureRecord
impl Debug for MeasureRecord
Source§impl<'de> Deserialize<'de> for MeasureRecord
impl<'de> Deserialize<'de> for MeasureRecord
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 PartialEq for MeasureRecord
impl PartialEq for MeasureRecord
Source§impl Serialize for MeasureRecord
impl Serialize for MeasureRecord
impl StructuralPartialEq for MeasureRecord
Auto Trait Implementations§
impl Freeze for MeasureRecord
impl RefUnwindSafe for MeasureRecord
impl Send for MeasureRecord
impl Sync for MeasureRecord
impl Unpin for MeasureRecord
impl UnsafeUnpin for MeasureRecord
impl UnwindSafe for MeasureRecord
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