pub struct NormalizedLink {
pub output_pin_id: i32,
pub input_pin_id: i32,
}Expand description
Endpoints of a valid link in the canonical output-to-input order.
validate_and_normalize_link returns this value only after basic pin
validation and the supplied topology rules have both succeeded. Using the
returned endpoints for link creation keeps duplicate checks and stored link
direction in agreement regardless of which pin started the gesture.
Fields§
§output_pin_id: i32Output pin ID, suitable for LinkModel::start_pin_id.
input_pin_id: i32Input pin ID, suitable for LinkModel::end_pin_id.
Trait Implementations§
Source§impl Clone for NormalizedLink
impl Clone for NormalizedLink
impl Copy for NormalizedLink
Source§impl Debug for NormalizedLink
impl Debug for NormalizedLink
impl Eq for NormalizedLink
Source§impl PartialEq for NormalizedLink
impl PartialEq for NormalizedLink
impl StructuralPartialEq for NormalizedLink
Auto Trait Implementations§
impl Freeze for NormalizedLink
impl RefUnwindSafe for NormalizedLink
impl Send for NormalizedLink
impl Sync for NormalizedLink
impl Unpin for NormalizedLink
impl UnsafeUnpin for NormalizedLink
impl UnwindSafe for NormalizedLink
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.