pub struct PathSegment {
pub kind: String,
pub point: [f64; 2],
pub local_point: [f64; 2],
pub close: bool,
}Expand description
路径片段保留控制点和闭合标记,point 为累积 Form 变换后的原生 PDF 坐标。
Fields§
§kind: String§point: [f64; 2]§local_point: [f64; 2]§close: boolTrait Implementations§
Source§impl Clone for PathSegment
impl Clone for PathSegment
Source§impl Debug for PathSegment
impl Debug for PathSegment
Source§impl<'de> Deserialize<'de> for PathSegment
impl<'de> Deserialize<'de> for PathSegment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for PathSegment
impl Freeze for PathSegment
impl RefUnwindSafe for PathSegment
impl Send for PathSegment
impl Sync for PathSegment
impl Unpin for PathSegment
impl UnsafeUnpin for PathSegment
impl UnwindSafe for PathSegment
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