pub struct AssociationDraft {
pub verb: AssocVerb,
pub kind: AssociationKind,
pub target: String,
pub field: usize,
}Expand description
The association overlay’s draft: the verb, the kind and the target.
Fields§
§verb: AssocVerbWhether applying the overlay associates or dereferences.
kind: AssociationKindThe reference kind; cycled with ←/→.
target: StringThe typed target.
field: usizeThe focused field (0 = kind, 1 = target).
Implementations§
Source§impl AssociationDraft
impl AssociationDraft
Sourcepub const KINDS: [AssociationKind; 3]
pub const KINDS: [AssociationKind; 3]
The kinds in cycle order.
Sourcepub fn cycle_kind(&mut self, delta: isize)
pub fn cycle_kind(&mut self, delta: isize)
Cycle the kind by delta, wrapping.
Sourcepub fn kind_label(&self) -> &'static str
pub fn kind_label(&self) -> &'static str
The kind’s label in the overlay.
Trait Implementations§
Source§impl Clone for AssociationDraft
impl Clone for AssociationDraft
Source§impl Debug for AssociationDraft
impl Debug for AssociationDraft
impl Eq for AssociationDraft
Source§impl PartialEq for AssociationDraft
impl PartialEq for AssociationDraft
impl StructuralPartialEq for AssociationDraft
Auto Trait Implementations§
impl Freeze for AssociationDraft
impl RefUnwindSafe for AssociationDraft
impl Send for AssociationDraft
impl Sync for AssociationDraft
impl Unpin for AssociationDraft
impl UnsafeUnpin for AssociationDraft
impl UnwindSafe for AssociationDraft
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more