Struct KeyedTransitionSet
pub struct KeyedTransitionSet<K, P> { /* private fields */ }Expand description
One active structural transition over a bounded set of visible keys.
Implementations§
§impl<K, P> KeyedTransitionSet<K, P>
impl<K, P> KeyedTransitionSet<K, P>
pub fn new() -> KeyedTransitionSet<K, P>
pub fn clear(&mut self)
pub fn is_active(&self, now: Instant) -> bool
pub fn settle(&mut self, now: Instant)
pub fn settle(&mut self, now: Instant)
Drop every track once the transition has run its course, so nothing is held at a snapshot’s geometry afterwards.
pub fn reconcile(
&mut self,
old: &[KeyedRowSnapshot<K, P>],
new: &[KeyedRowSnapshot<K, P>],
now: Instant,
duration: Duration,
curve: Curve,
reduce_motion: bool,
)
pub fn reconcile( &mut self, old: &[KeyedRowSnapshot<K, P>], new: &[KeyedRowSnapshot<K, P>], now: Instant, duration: Duration, curve: Curve, reduce_motion: bool, )
Compare two bounded snapshots. Reduced motion and zero duration both snap by clearing all tracks.
pub fn visual(
&self,
key: &K,
settled: RowGeometry,
now: Instant,
) -> TransitionVisualwhere
K: PartialEq,
pub fn exiting( &self, now: Instant, ) -> impl Iterator<Item = (&K, &P, TransitionVisual)>
Trait Implementations§
§impl<K, P> Default for KeyedTransitionSet<K, P>
impl<K, P> Default for KeyedTransitionSet<K, P>
§fn default() -> KeyedTransitionSet<K, P>
fn default() -> KeyedTransitionSet<K, P>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<K, P> Freeze for KeyedTransitionSet<K, P>
impl<K, P> RefUnwindSafe for KeyedTransitionSet<K, P>where
K: RefUnwindSafe,
P: RefUnwindSafe,
impl<K, P> Send for KeyedTransitionSet<K, P>
impl<K, P> Sync for KeyedTransitionSet<K, P>
impl<K, P> Unpin for KeyedTransitionSet<K, P>
impl<K, P> UnsafeUnpin for KeyedTransitionSet<K, P>
impl<K, P> UnwindSafe for KeyedTransitionSet<K, P>where
K: UnwindSafe,
P: UnwindSafe,
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.