pub struct Move {
pub kind: MoveKind,
pub a_idx: Option<usize>,
pub b_idx: Option<usize>,
pub cost: f64,
pub confidence: f64,
}Expand description
One move in the alignment. The invariant tying kind to the indices — sync has both, log
has only b_idx, model has only a_idx — is guaranteed by the Move::sync/Move::log
/Move::model constructors.
Fields§
§kind: MoveKind§a_idx: Option<usize>Step index in run a, present unless this is a log-only move.
b_idx: Option<usize>Step index in run b, present unless this is a model-only move.
cost: f64Alignment cost of this move (lower = more similar). Domain of the cost model.
confidence: f64Confidence in this move, in [0, 1].
Implementations§
Source§impl Move
impl Move
Trait Implementations§
impl Copy for Move
Source§impl<'de> Deserialize<'de> for Move
impl<'de> Deserialize<'de> for Move
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
impl StructuralPartialEq for Move
Auto Trait Implementations§
impl Freeze for Move
impl RefUnwindSafe for Move
impl Send for Move
impl Sync for Move
impl Unpin for Move
impl UnsafeUnpin for Move
impl UnwindSafe for Move
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