pub struct LatticeDotData<'a> {
pub left_input: &'a str,
pub right_input: &'a str,
pub left_lattice: &'a Lattice,
pub right_lattice: &'a Lattice,
pub distance: usize,
pub trace: Option<&'a DistanceTrace>,
pub trace_error: Option<&'a str>,
}Expand description
Input data for rendering a pair of lattices as a Graphviz DOT graph.
Fields§
§left_input: &'a strOriginal left input text.
right_input: &'a strOriginal right input text.
left_lattice: &'a LatticeLeft-side lattice.
right_lattice: &'a LatticeRight-side lattice.
distance: usizeLPED distance between the two lattices.
trace: Option<&'a DistanceTrace>Optional best-path trace used to highlight one optimal path.
trace_error: Option<&'a str>Optional trace reconstruction error shown in the graph label.
Trait Implementations§
Source§impl<'a> Clone for LatticeDotData<'a>
impl<'a> Clone for LatticeDotData<'a>
Source§fn clone(&self) -> LatticeDotData<'a>
fn clone(&self) -> LatticeDotData<'a>
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 moreimpl<'a> Copy for LatticeDotData<'a>
Auto Trait Implementations§
impl<'a> Freeze for LatticeDotData<'a>
impl<'a> RefUnwindSafe for LatticeDotData<'a>
impl<'a> Send for LatticeDotData<'a>
impl<'a> Sync for LatticeDotData<'a>
impl<'a> Unpin for LatticeDotData<'a>
impl<'a> UnsafeUnpin for LatticeDotData<'a>
impl<'a> UnwindSafe for LatticeDotData<'a>
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