pub struct Arrow {
pub start: LineEndKind,
pub end: LineEndKind,
pub line_style: LineStyleKind,
pub text: String,
pub look: StyleAttr,
pub properties: Option<String>,
pub src_port: Option<String>,
pub dst_port: Option<String>,
}
Fields§
§start: LineEndKind
§end: LineEndKind
§line_style: LineStyleKind
§text: String
§look: StyleAttr
§properties: Option<String>
§src_port: Option<String>
§dst_port: Option<String>
Implementations§
Source§impl Arrow
impl Arrow
pub fn reverse(&self) -> Arrow
pub fn new( start: LineEndKind, end: LineEndKind, line_style: LineStyleKind, text: &str, look: &StyleAttr, src_port: &Option<String>, dst_port: &Option<String>, ) -> Arrow
pub fn with_properties( start: LineEndKind, end: LineEndKind, line_style: LineStyleKind, text: &str, look: &StyleAttr, properties: impl Into<String>, src_port: &Option<String>, dst_port: &Option<String>, ) -> Arrow
pub fn simple(text: &str) -> Arrow
pub fn simple_with_properties( text: &str, properties: impl Into<String>, ) -> Arrow
pub fn invisible() -> Arrow
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Arrow
impl RefUnwindSafe for Arrow
impl Send for Arrow
impl Sync for Arrow
impl Unpin for Arrow
impl UnwindSafe for Arrow
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