pub enum AttributeFlags {
None = 0,
EnableLinkDetachWithDragClick = 1,
EnableLinkCreationOnSnap = 2,
}Expand description
Controls the way that attribute pins behave
Variants§
None = 0
EnableLinkDetachWithDragClick = 1
If there is a link on the node then it will detatch instead of creating a new one. Requires handling of deleted links via Context::link_destroyed
EnableLinkCreationOnSnap = 2
Visual snapping will trigger link creation / destruction
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AttributeFlags
impl RefUnwindSafe for AttributeFlags
impl Send for AttributeFlags
impl Sync for AttributeFlags
impl Unpin for AttributeFlags
impl UnwindSafe for AttributeFlags
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