pub struct DrawEdge {
pub colour: (u8, u8, u8),
pub width: f64,
pub line: EdgeLine,
pub class: Option<String>,
pub tooltip: String,
pub label: Option<String>,
pub attrs: Vec<DataAttr>,
pub label_attrs: Vec<DataAttr>,
}Expand description
What an edge looks like, and its attributes. Its points come from the
layout (GraphLayout::edges); the arrowhead is on its last point.
Fields§
§colour: (u8, u8, u8)§width: f64Line width (px), see flow_width.
line: EdgeLine§class: Option<String>Extra CSS classes on the path.
tooltip: String§label: Option<String>A label (\n breaks lines) on the edge, clear of the boxes.
attrs: Vec<DataAttr>data-* on the path; every edge lists the same names, in the same
order.
label_attrs: Vec<DataAttr>data-* on the label.
Trait Implementations§
Auto Trait Implementations§
impl Forget for DrawEdge
impl Freeze for DrawEdge
impl Move for DrawEdge
impl RefUnwindSafe for DrawEdge
impl Send for DrawEdge
impl Sync for DrawEdge
impl Unpin for DrawEdge
impl UnsafeUnpin for DrawEdge
impl UnwindSafe for DrawEdge
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
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