pub struct Edge {
pub id: NodeId,
pub from: EdgeAnchor,
pub to: EdgeAnchor,
pub text_child: Option<NodeId>,
pub props: Properties,
pub use_styles: SmallVec<[NodeId; 2]>,
pub arrow: ArrowKind,
pub curve: CurveKind,
pub spec: Option<String>,
pub animations: SmallVec<[AnimKeyframe; 2]>,
pub flow: Option<FlowAnim>,
pub label_offset: Option<(f32, f32)>,
}Expand description
A visual connection between two endpoints.
Fields§
§id: NodeId§from: EdgeAnchor§to: EdgeAnchor§text_child: Option<NodeId>Optional text child node (max 1). The node lives in the SceneGraph.
props: Properties§use_styles: SmallVec<[NodeId; 2]>§arrow: ArrowKind§curve: CurveKind§spec: Option<String>§animations: SmallVec<[AnimKeyframe; 2]>§flow: Option<FlowAnim>§label_offset: Option<(f32, f32)>Offset of the edge text from the midpoint, set when label is dragged.
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