pub enum AutoPanActivation {
Always,
NodeDrag,
Connect,
NodeFocus,
}Expand description
Auto-pan policy gate for a workflow.
Variants§
Always
Bypass workflow-specific toggles. Useful for adapter-owned workflows such as selection.
NodeDrag
Respect auto_pan.on_node_drag.
Connect
Respect auto_pan.on_connect.
NodeFocus
Respect auto_pan.on_node_focus.
Implementations§
Source§impl AutoPanActivation
impl AutoPanActivation
pub fn enabled_by(self, tuning: &NodeGraphAutoPanTuning) -> bool
Trait Implementations§
Source§impl Clone for AutoPanActivation
impl Clone for AutoPanActivation
Source§fn clone(&self) -> AutoPanActivation
fn clone(&self) -> AutoPanActivation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AutoPanActivation
Source§impl Debug for AutoPanActivation
impl Debug for AutoPanActivation
Source§impl<'de> Deserialize<'de> for AutoPanActivation
impl<'de> Deserialize<'de> for AutoPanActivation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AutoPanActivation
Source§impl PartialEq for AutoPanActivation
impl PartialEq for AutoPanActivation
Source§fn eq(&self, other: &AutoPanActivation) -> bool
fn eq(&self, other: &AutoPanActivation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AutoPanActivation
impl Serialize for AutoPanActivation
impl StructuralPartialEq for AutoPanActivation
Auto Trait Implementations§
impl Freeze for AutoPanActivation
impl RefUnwindSafe for AutoPanActivation
impl Send for AutoPanActivation
impl Sync for AutoPanActivation
impl Unpin for AutoPanActivation
impl UnsafeUnpin for AutoPanActivation
impl UnwindSafe for AutoPanActivation
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.