pub struct DimLabel {
pub id: Value,
pub text: String,
pub world: [f64; 3],
pub value: Option<f64>,
pub value_expr: Option<String>,
pub mode: &'static str,
}Expand description
The label placement + metadata for one dimensional constraint.
Fields§
§id: ValueThe constraint id (raw Value).
text: StringThe rendered text (value.toFixed(3), R…, ⌀…, or the angle value).
world: [f64; 3]The label anchor in world space (plane.to_world(label_uv)).
value: Option<f64>The stored numeric solver value (a radius for radial dims), if finite.
value_expr: Option<String>The stored valueExpr string (if any).
mode: &'static strThe display mode: "distance" | "radius" | "diameter" | "angle".
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DimLabel
impl RefUnwindSafe for DimLabel
impl Send for DimLabel
impl Sync for DimLabel
impl Unpin for DimLabel
impl UnsafeUnpin for DimLabel
impl UnwindSafe for DimLabel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more