//! The result of an alignment.
use fmt;
/// The best-scoring alignment found, carrying exactly the four fields the determinism contract
/// pins: score, database index, query end position, and target end position.
///
/// `query_end` / `target_end` are `0`-based indices of the last aligned position in each
/// sequence, or `None` when that sequence contributes no aligned position — either because the
/// sequence is empty / nothing aligned to it, or because the search was
/// [`SearchType::Score`](crate::SearchType::Score), which does not track end positions.
///
/// `db_index` is the index of the winning sequence in a database scan; for a single pair
/// alignment ([`align_pair`](crate::align_pair)) it is always `0`.