pub struct Drawing2d {
pub unit_mm: Option<f64>,
pub curves: Vec<DrawingCurve>,
pub texts: Vec<DrawingText>,
}Expand description
The curves and texts of a 2D drawing file, in the drawing’s own coordinates.
Fields§
§unit_mm: Option<f64>Millimetres per drawing unit, when the drawing names its unit.
curves: Vec<DrawingCurve>Every curve, in the order the file has them.
texts: Vec<DrawingText>Every line of text, in the order the file has them.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Drawing2d
impl<'de> Deserialize<'de> for Drawing2d
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
impl StructuralPartialEq for Drawing2d
Auto Trait Implementations§
impl Forget for Drawing2d
impl Freeze for Drawing2d
impl RefUnwindSafe for Drawing2d
impl Send for Drawing2d
impl Sync for Drawing2d
impl Unpin for Drawing2d
impl UnsafeUnpin for Drawing2d
impl UnwindSafe for Drawing2d
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