pub struct EdgePaintIn {
pub pts: Vec<Pt>,
pub arrow: EdgeArrow,
pub routing: Option<EdgeRouting>,
pub color: Option<String>,
pub stroke_width: Option<f64>,
pub dashed: bool,
pub label: Option<String>,
pub label_pos: Option<String>,
pub index: usize,
pub curve_catmull: bool,
pub label_xy: Option<Pt>,
pub label_rotate: Option<f64>,
}Expand description
Minimal shaft/head paint request (host supplies resolved route points).
Fields§
§pts: Vec<Pt>§arrow: EdgeArrow§routing: Option<EdgeRouting>§color: Option<String>§stroke_width: Option<f64>§dashed: bool§label: Option<String>§label_pos: Option<String>§index: usize§curve_catmull: boolPaint the shaft as an open centripetal Catmull–Rom (scheme energy refine).
label_xy: Option<Pt>Override label position (document px). None → longest-segment midpoint.
label_rotate: Option<f64>Label rotation in degrees (SVG, about the glyph origin).
Trait Implementations§
Source§impl Clone for EdgePaintIn
impl Clone for EdgePaintIn
Source§fn clone(&self) -> EdgePaintIn
fn clone(&self) -> EdgePaintIn
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 EdgePaintIn
impl RefUnwindSafe for EdgePaintIn
impl Send for EdgePaintIn
impl Sync for EdgePaintIn
impl Unpin for EdgePaintIn
impl UnsafeUnpin for EdgePaintIn
impl UnwindSafe for EdgePaintIn
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