pub enum SteadySegmentAnimation {
Comet,
Dash,
GlowBand,
Chevrons,
}Expand description
A built-in effect that runs until it is cleared, for a segment.
Reached through node state set on SegmentHandle
(map.segment(id)?.comet() / .dash()). Like SteadyAnimation, these
never end, so the widget keeps requesting repaints for as long as one is
active — fine for a handful of highlighted routes, not for every segment
on the map.
Variants§
Comet
A dot travelling from one endpoint to the other and looping. Reads as “this is the direction of flow”.
Dash
A dashed line whose pattern slides along the segment (“marching ants”). Reads as “route”, classic for a path someone might follow.
GlowBand
A localized band of brightness travelling the length of the segment
and looping, fading out before it reaches either end rather than
snapping back. Reads as “flow”, softer and less busy than Self::Dash.
Chevrons
A row of arrow shapes sliding along the segment, pointing the way.
Reads as “direction of travel”, more explicit than Self::Comet’s
single dot.
Trait Implementations§
Source§impl Clone for SteadySegmentAnimation
impl Clone for SteadySegmentAnimation
Source§fn clone(&self) -> SteadySegmentAnimation
fn clone(&self) -> SteadySegmentAnimation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SteadySegmentAnimation
Source§impl Debug for SteadySegmentAnimation
impl Debug for SteadySegmentAnimation
Source§impl Default for SteadySegmentAnimation
impl Default for SteadySegmentAnimation
Source§fn default() -> SteadySegmentAnimation
fn default() -> SteadySegmentAnimation
impl Eq for SteadySegmentAnimation
Source§impl PartialEq for SteadySegmentAnimation
impl PartialEq for SteadySegmentAnimation
impl StructuralPartialEq for SteadySegmentAnimation
Auto Trait Implementations§
impl Freeze for SteadySegmentAnimation
impl RefUnwindSafe for SteadySegmentAnimation
impl Send for SteadySegmentAnimation
impl Sync for SteadySegmentAnimation
impl Unpin for SteadySegmentAnimation
impl UnsafeUnpin for SteadySegmentAnimation
impl UnwindSafe for SteadySegmentAnimation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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