pub struct DimensionGeometry {
pub lines: Vec<Segment>,
pub arc: Option<Arc>,
pub arrows: Vec<Arrow>,
pub text_position: Point,
pub text_rotation: f64,
pub value: f64,
}Expand description
Drawable dimension pieces.
Fields§
§lines: Vec<Segment>Extension and dimension lines.
arc: Option<Arc>Dimension arc (angular dimensions).
arrows: Vec<Arrow>Arrow heads.
text_position: PointText anchor (center of the label).
text_rotation: f64Text rotation (kept readable: within (-π/2, π/2]).
value: f64Measured value: length in model units, or angle in radians.
Trait Implementations§
Source§impl Clone for DimensionGeometry
impl Clone for DimensionGeometry
Source§fn clone(&self) -> DimensionGeometry
fn clone(&self) -> DimensionGeometry
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 DimensionGeometry
impl Debug for DimensionGeometry
Source§impl<'de> Deserialize<'de> for DimensionGeometry
impl<'de> Deserialize<'de> for DimensionGeometry
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
Source§impl PartialEq for DimensionGeometry
impl PartialEq for DimensionGeometry
Source§fn eq(&self, other: &DimensionGeometry) -> bool
fn eq(&self, other: &DimensionGeometry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DimensionGeometry
impl Serialize for DimensionGeometry
impl StructuralPartialEq for DimensionGeometry
Auto Trait Implementations§
impl Freeze for DimensionGeometry
impl RefUnwindSafe for DimensionGeometry
impl Send for DimensionGeometry
impl Sync for DimensionGeometry
impl Unpin for DimensionGeometry
impl UnsafeUnpin for DimensionGeometry
impl UnwindSafe for DimensionGeometry
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