pub struct Connector { /* private fields */ }Expand description
A visual connector between adjacent tiers.
Connectors provide visual flow cues but do not carry semantic
relationship data (use Edge for that).
Implementations§
Source§impl Connector
impl Connector
Sourcepub fn new(style: ConnectorStyle) -> Self
pub fn new(style: ConnectorStyle) -> Self
Creates a new connector with the given style.
Sourcepub fn with_label(style: ConnectorStyle, label: &str) -> Self
pub fn with_label(style: ConnectorStyle, label: &str) -> Self
Creates a new connector with a label (line connectors only).
Sourcepub fn style(&self) -> ConnectorStyle
pub fn style(&self) -> ConnectorStyle
Returns the visual style.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Connector
impl<'de> Deserialize<'de> for Connector
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
impl StructuralPartialEq for Connector
Auto Trait Implementations§
impl Freeze for Connector
impl RefUnwindSafe for Connector
impl Send for Connector
impl Sync for Connector
impl Unpin for Connector
impl UnsafeUnpin for Connector
impl UnwindSafe for Connector
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