pub struct KeywordPosition {
pub page: usize,
pub rect: ST_Box,
pub keyword: Option<String>,
}Expand description
关键字位置,描述关键字在 OFD 文档中的定位信息。
对应 Java: org.ofdrw.reader.keyword.KeywordPosition
Fields§
§page: usize关键字所在页码(从 1 开始)。
rect: ST_Box关键字在页面中的矩形区域(毫米)。
keyword: Option<String>所属关键字文本。
Implementations§
Source§impl KeywordPosition
impl KeywordPosition
Sourcepub fn with_keyword(self, keyword: impl Into<String>) -> Self
pub fn with_keyword(self, keyword: impl Into<String>) -> Self
设置所属关键字。
Trait Implementations§
Source§impl Clone for KeywordPosition
impl Clone for KeywordPosition
Source§fn clone(&self) -> KeywordPosition
fn clone(&self) -> KeywordPosition
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 moreSource§impl Debug for KeywordPosition
impl Debug for KeywordPosition
Auto Trait Implementations§
impl Freeze for KeywordPosition
impl RefUnwindSafe for KeywordPosition
impl Send for KeywordPosition
impl Sync for KeywordPosition
impl Unpin for KeywordPosition
impl UnsafeUnpin for KeywordPosition
impl UnwindSafe for KeywordPosition
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