#[non_exhaustive]pub enum DHit {
None,
Node(u64),
Port(u64),
Edge {
key: u64,
seg: u32,
t: f32,
},
Waypoint(u64, u32),
Mid(u64, u32),
Toggle(u64),
Resize(u64),
}Expand description
what a point of the canvas shows
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Node(u64)
Port(u64)
Edge
an edge: seg = the stretch between its defining points seg and seg + 1 (0 = the start, then the waypoints), t = 0..1 along it
Waypoint(u64, u32)
the handle of waypoint idx of a selected edge
Mid(u64, u32)
the handle in the middle of stretch idx of a selected edge (a drag inserts waypoint idx)
Toggle(u64)
the collapse button of a DN_TOGGLE node
Resize(u64)
the resize handle of a selected DN_RESIZE node
Implementations§
Trait Implementations§
impl Copy for DHit
impl StructuralPartialEq for DHit
Auto Trait Implementations§
impl Forget for DHit
impl Freeze for DHit
impl RefUnwindSafe for DHit
impl Send for DHit
impl Sync for DHit
impl Unpin for DHit
impl UnsafeUnpin for DHit
impl UnwindSafe for DHit
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