pub struct TransitionSpec {
pub duration_ms: f32,
pub easing: Easing,
pub camera_follow: bool,
pub layout_tween: bool,
}Fields§
§duration_ms: f32§easing: Easing§camera_follow: boolWhen true, the camera glides to frame the selection on navigation.
layout_tween: boolWhen true, node positions interpolate on selection change.
Trait Implementations§
Source§impl Clone for TransitionSpec
impl Clone for TransitionSpec
Source§fn clone(&self) -> TransitionSpec
fn clone(&self) -> TransitionSpec
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 TransitionSpec
impl Debug for TransitionSpec
Source§impl Default for TransitionSpec
impl Default for TransitionSpec
Source§impl<'de> Deserialize<'de> for TransitionSpecwhere
TransitionSpec: Default,
impl<'de> Deserialize<'de> for TransitionSpecwhere
TransitionSpec: Default,
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
Auto Trait Implementations§
impl Freeze for TransitionSpec
impl RefUnwindSafe for TransitionSpec
impl Send for TransitionSpec
impl Sync for TransitionSpec
impl Unpin for TransitionSpec
impl UnsafeUnpin for TransitionSpec
impl UnwindSafe for TransitionSpec
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