pub struct PageBlockTextObject {
pub id: u32,
pub boundary: String,
pub content: String,
pub font_size: f64,
}Expand description
页面块中的文本对象(简化表示)。
Fields§
§id: u32对象 ID。
boundary: String边界框 “x y width height”。
content: String文本内容。
font_size: f64字号(pt)。
Implementations§
Trait Implementations§
Source§impl Clone for PageBlockTextObject
impl Clone for PageBlockTextObject
Source§fn clone(&self) -> PageBlockTextObject
fn clone(&self) -> PageBlockTextObject
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 PageBlockTextObject
impl Debug for PageBlockTextObject
Source§impl XmlElement for PageBlockTextObject
impl XmlElement for PageBlockTextObject
Source§fn element_name(&self) -> &'static str
fn element_name(&self) -> &'static str
对应 Java: org.ofdrw.core.basicStructure.pageObj.layer.block.TextObject(简化版)
Source§fn text_content(&self) -> Option<&str>
fn text_content(&self) -> Option<&str>
文本内容(简单文本元素)。
Source§fn from_xml(node: &XmlNode) -> Result<Self, XmlElementError>
fn from_xml(node: &XmlNode) -> Result<Self, XmlElementError>
从节点树解析(对应 ofdrw 解析侧;quick-xml 产物)。 Read more
Source§fn child_nodes(&self) -> Vec<XmlNode>
fn child_nodes(&self) -> Vec<XmlNode>
子元素(作为
XmlNode 提供,便于嵌套序列化)。Auto Trait Implementations§
impl Freeze for PageBlockTextObject
impl RefUnwindSafe for PageBlockTextObject
impl Send for PageBlockTextObject
impl Sync for PageBlockTextObject
impl Unpin for PageBlockTextObject
impl UnsafeUnpin for PageBlockTextObject
impl UnwindSafe for PageBlockTextObject
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