pub struct PlacedLabel {
pub raw: String,
pub text: String,
pub origin_x: f64,
pub y: f64,
pub atom_x: f64,
pub atom_y: f64,
pub side: LabelSide,
pub clearance: f64,
pub path_d: String,
}Expand description
One placed atom label in SVG space (+Y down).
Fields§
§raw: StringOriginal input label (for re-outline / halo).
text: StringDisplay string for data-text (unicode scripts when possible).
origin_x: f64Left edge of the advance (SVG text origin), baseline at Self::y.
y: f64§atom_x: f64§atom_y: f64§side: LabelSide§clearance: f64Bond inset from the atom toward neighbors (isotropic: center glyph
advance/ink width + gap). Per-bond shortening uses directional ink
support via place_backbone.
path_d: StringOutlined glyph path d (empty when no ink).
Trait Implementations§
Source§impl Clone for PlacedLabel
impl Clone for PlacedLabel
Source§fn clone(&self) -> PlacedLabel
fn clone(&self) -> PlacedLabel
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 moreAuto Trait Implementations§
impl Freeze for PlacedLabel
impl RefUnwindSafe for PlacedLabel
impl Send for PlacedLabel
impl Sync for PlacedLabel
impl Unpin for PlacedLabel
impl UnsafeUnpin for PlacedLabel
impl UnwindSafe for PlacedLabel
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