pub enum EdgeAnimationActive {
Always,
OnProcessStepFocus,
}Expand description
Controls when edge CSS animations are active in the rendered SVG.
This enum is passed to TaffyToSvgElementsMapper::map to choose whether
edge animations run unconditionally or only when a related process step
has focus.
§Variants
Always– animation classes are attached directly (the current default behaviour). The edges animate continuously.OnProcessStepFocus– animation classes are prefixed withgroup-has-[#{process_step_id}:focus-within]:so that each edge only animates when one of its associated process steps is focused.
§Examples
use disposition_input_ir_model::EdgeAnimationActive;
let mode = EdgeAnimationActive::default();
assert!(matches!(mode, EdgeAnimationActive::Always));Variants§
Always
Animations are always running on interaction edges.
OnProcessStepFocus
Animations are only active when a related process step has
:focus-within.
Trait Implementations§
Source§impl Clone for EdgeAnimationActive
impl Clone for EdgeAnimationActive
Source§fn clone(&self) -> EdgeAnimationActive
fn clone(&self) -> EdgeAnimationActive
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 EdgeAnimationActive
impl Debug for EdgeAnimationActive
Source§impl Default for EdgeAnimationActive
impl Default for EdgeAnimationActive
Source§fn default() -> EdgeAnimationActive
fn default() -> EdgeAnimationActive
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EdgeAnimationActive
impl<'de> Deserialize<'de> for EdgeAnimationActive
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EdgeAnimationActive, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EdgeAnimationActive, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for EdgeAnimationActive
impl Hash for EdgeAnimationActive
Source§impl PartialEq for EdgeAnimationActive
impl PartialEq for EdgeAnimationActive
Source§impl Serialize for EdgeAnimationActive
impl Serialize for EdgeAnimationActive
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for EdgeAnimationActive
impl Eq for EdgeAnimationActive
impl StructuralPartialEq for EdgeAnimationActive
Auto Trait Implementations§
impl Freeze for EdgeAnimationActive
impl RefUnwindSafe for EdgeAnimationActive
impl Send for EdgeAnimationActive
impl Sync for EdgeAnimationActive
impl Unpin for EdgeAnimationActive
impl UnsafeUnpin for EdgeAnimationActive
impl UnwindSafe for EdgeAnimationActive
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.