pub struct Edge { /* private fields */ }Expand description
Graph’s edge.
Implementations§
Source§impl Edge
impl Edge
pub fn new(from: &str, to: &str, label: &str) -> Self
pub fn label(&mut self, label: &str) -> Self
pub fn style(&mut self, style: Style) -> Self
pub fn color(&mut self, color: Option<&str>) -> Self
pub fn start_arrow(&mut self, arrow: Arrow) -> Self
pub fn end_arrow(&mut self, arrow: Arrow) -> Self
pub fn to_dot_string(&self, edge_symbol: &str) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnwindSafe for Edge
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