pub struct KeystoneMeasurement {
pub piece_index: usize,
pub piece_id: Option<String>,
pub edge: BoardEdge,
pub ref: FeatureRef,
pub distance: f64,
}Expand description
One derived dimension line, ready to print on a card. Field order matches the TS helper’s emitted JSON (piece_index, piece_id, edge, ref, distance) so cross-impl byte comparison of the runner op holds.
Fields§
§piece_index: usize§piece_id: Option<String>§edge: BoardEdge§ref: FeatureRef§distance: f64Trait Implementations§
Source§impl Clone for KeystoneMeasurement
impl Clone for KeystoneMeasurement
Source§fn clone(&self) -> KeystoneMeasurement
fn clone(&self) -> KeystoneMeasurement
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 KeystoneMeasurement
impl Debug for KeystoneMeasurement
Source§impl<'de> Deserialize<'de> for KeystoneMeasurement
impl<'de> Deserialize<'de> for KeystoneMeasurement
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 KeystoneMeasurement
impl PartialEq for KeystoneMeasurement
Source§fn eq(&self, other: &KeystoneMeasurement) -> bool
fn eq(&self, other: &KeystoneMeasurement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KeystoneMeasurement
impl Serialize for KeystoneMeasurement
impl StructuralPartialEq for KeystoneMeasurement
Auto Trait Implementations§
impl Freeze for KeystoneMeasurement
impl RefUnwindSafe for KeystoneMeasurement
impl Send for KeystoneMeasurement
impl Sync for KeystoneMeasurement
impl Unpin for KeystoneMeasurement
impl UnsafeUnpin for KeystoneMeasurement
impl UnwindSafe for KeystoneMeasurement
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