rpdfium-doc 7676.6.2

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

//! Word place — character position within laid-out text (`CPVT_WordPlace`).
//!
//! Identifies a character by section, line, and word indices within the
//! variable text layout engine.

/// A position within the laid-out text, identifying a character by
/// section, line, and word indices.
///
/// Corresponds to upstream `CPVT_WordPlace`.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
pub struct WordPlace {
    /// Section index.
    pub section: usize,
    /// Line index within the section.
    pub line: usize,
    /// Word (character) index within the line.
    pub word: usize,
}