pub struct Edge {
pub id: NodeId,
pub from: NodeId,
pub to: NodeId,
pub label: Option<String>,
pub style: Style,
pub use_styles: SmallVec<[NodeId; 2]>,
pub arrow: ArrowKind,
pub curve: CurveKind,
pub annotations: Vec<Annotation>,
pub animations: SmallVec<[AnimKeyframe; 2]>,
pub flow: Option<FlowAnim>,
}Expand description
A visual connection between two nodes.
Fields§
§id: NodeId§from: NodeId§to: NodeId§label: Option<String>§style: Style§use_styles: SmallVec<[NodeId; 2]>§arrow: ArrowKind§curve: CurveKind§annotations: Vec<Annotation>§animations: SmallVec<[AnimKeyframe; 2]>§flow: Option<FlowAnim>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Edge
impl<'de> Deserialize<'de> for Edge
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnsafeUnpin 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