docx-review-core 0.1.0

Review-oriented DOCX extraction library for tracked changes, comments, and structural blocks
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::{Deserialize, Serialize};

use super::BlockId;

/// A character-range anchor into a block's visible text.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct TextAnchor {
    /// Identifier of the anchored block.
    pub block_id: BlockId,
    /// Start character offset within the block text.
    pub char_start: usize,
    /// End character offset within the block text.
    pub char_end: usize,
}