pub struct Line {
pub point: (f64, f64),
}Expand description
线段路径方法。
图 51 线段结构。从当前点绘制直线到指定结束点。
对应 Java: org.ofdrw.core.graph.tight.method.Line
Fields§
§point: (f64, f64)线段的结束点 (x, y)。
Implementations§
Trait Implementations§
impl StructuralPartialEq for Line
Source§impl XmlElement for Line
impl XmlElement for Line
Source§fn element_name(&self) -> &'static str
fn element_name(&self) -> &'static str
对应 Java: Line 元素名 “Line”。
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 提供,便于嵌套序列化)。Source§fn text_content(&self) -> Option<&str>
fn text_content(&self) -> Option<&str>
文本内容(简单文本元素)。
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnsafeUnpin for Line
impl UnwindSafe for Line
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