pub enum ShadowVariableKind {
Custom,
InverseRelation,
Index,
NextElement,
PreviousElement,
Anchor,
Cascading,
Piggyback,
}Expand description
The kind of shadow variable.
Variants§
Custom
Custom shadow variable with user-defined listener.
InverseRelation
Inverse of another variable (bidirectional relationship).
Index
Index within a list variable.
NextElement
Next element in a list variable.
PreviousElement
Previous element in a list variable.
Anchor
Anchor in a chained variable.
Cascading
Cascading update from other shadow variables.
Piggyback
Piggyback on another shadow variable’s listener.
Implementations§
Source§impl ShadowVariableKind
impl ShadowVariableKind
Sourcepub fn requires_listener(&self) -> bool
pub fn requires_listener(&self) -> bool
Returns true if this shadow variable requires a custom listener.
Sourcepub fn is_automatic(&self) -> bool
pub fn is_automatic(&self) -> bool
Returns true if this shadow variable is automatically maintained.
Trait Implementations§
Source§impl Clone for ShadowVariableKind
impl Clone for ShadowVariableKind
Source§fn clone(&self) -> ShadowVariableKind
fn clone(&self) -> ShadowVariableKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShadowVariableKind
impl Debug for ShadowVariableKind
Source§impl Hash for ShadowVariableKind
impl Hash for ShadowVariableKind
Source§impl PartialEq for ShadowVariableKind
impl PartialEq for ShadowVariableKind
impl Copy for ShadowVariableKind
impl Eq for ShadowVariableKind
impl StructuralPartialEq for ShadowVariableKind
Auto Trait Implementations§
impl Freeze for ShadowVariableKind
impl RefUnwindSafe for ShadowVariableKind
impl Send for ShadowVariableKind
impl Sync for ShadowVariableKind
impl Unpin for ShadowVariableKind
impl UnwindSafe for ShadowVariableKind
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