pub enum Transition {
Continue,
Retain,
SmoothShift,
RoughShift,
NoCb,
}Expand description
Centering Theory transition class between consecutive utterances.
Prefer (in order): Continue > Retain > SmoothShift > RoughShift.
NoCb means no coherent transition could be classified (first render,
post-reset, or utterance with no entities).
Based on Grosz, Joshi & Weinstein (1995).
Variants§
Continue
Cb(n) == Cb(n−1) and Cb(n) == Cp(n): most coherent, entity in focus stays.
Retain
Cb(n) == Cb(n−1) but Cb(n) != Cp(n): coherent but not the most salient entity.
SmoothShift
Cb(n) != Cb(n−1) but Cb(n) == Cp(n): focus shifts cleanly to the new center.
RoughShift
Cb(n) != Cb(n−1) and Cb(n) != Cp(n): least coherent shift.
NoCb
No transition could be classified: first render, post-reset, or no entities.
Trait Implementations§
Source§impl Clone for Transition
impl Clone for Transition
Source§fn clone(&self) -> Transition
fn clone(&self) -> Transition
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 moreSource§impl Debug for Transition
impl Debug for Transition
Source§impl PartialEq for Transition
impl PartialEq for Transition
Source§fn eq(&self, other: &Transition) -> bool
fn eq(&self, other: &Transition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Transition
impl Eq for Transition
impl StructuralPartialEq for Transition
Auto Trait Implementations§
impl Freeze for Transition
impl RefUnwindSafe for Transition
impl Send for Transition
impl Sync for Transition
impl Unpin for Transition
impl UnsafeUnpin for Transition
impl UnwindSafe for Transition
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