rpdfium-doc 7676.6.2

Document-level features for rpdfium
Documentation
// Derived from PDFium's cpvt_wordrange.h
// Original: Copyright 2014 The PDFium Authors
// Licensed under BSD-3-Clause / Apache-2.0
// See pdfium-upstream/LICENSE for the original license.

//! Word range — a span of characters in laid-out text (`CPVT_WordRange`).
//!
//! Represents a contiguous range of characters from a begin position
//! (inclusive) to an end position (exclusive).

use super::vt_word_place::WordPlace;

/// A range of positions within the laid-out text.
///
/// Corresponds to upstream `CPVT_WordRange`.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct WordRange {
    /// Start position (inclusive).
    pub begin: WordPlace,
    /// End position (exclusive).
    pub end: WordPlace,
}