pub enum TabsTransition {
Instant,
Slide(u64),
}
Expand description
Determines whether the tabs will have a transition animation when a new tab is selected.
Variants§
Instant
Change tabs instantly with no animation
Slide(u64)
Slide tabs across in the appropriate direction. The argument is the duration in nanoseconds
Trait Implementations§
§impl Clone for TabsTransition
impl Clone for TabsTransition
§fn clone(&self) -> TabsTransition
fn clone(&self) -> TabsTransition
Returns a copy 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 more§impl Data for TabsTransition
impl Data for TabsTransition
§fn same(&self, other: &TabsTransition) -> bool
fn same(&self, other: &TabsTransition) -> bool
Determine whether two values are the same. Read more
§impl Debug for TabsTransition
impl Debug for TabsTransition
§impl Default for TabsTransition
impl Default for TabsTransition
§fn default() -> TabsTransition
fn default() -> TabsTransition
Returns the “default value” for a type. Read more
§impl PartialEq<TabsTransition> for TabsTransition
impl PartialEq<TabsTransition> for TabsTransition
§fn eq(&self, other: &TabsTransition) -> bool
fn eq(&self, other: &TabsTransition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd<TabsTransition> for TabsTransition
impl PartialOrd<TabsTransition> for TabsTransition
§fn partial_cmp(&self, other: &TabsTransition) -> Option<Ordering>
fn partial_cmp(&self, other: &TabsTransition) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for TabsTransition
impl Eq for TabsTransition
impl StructuralEq for TabsTransition
impl StructuralPartialEq for TabsTransition
Auto Trait Implementations§
impl RefUnwindSafe for TabsTransition
impl Send for TabsTransition
impl Sync for TabsTransition
impl Unpin for TabsTransition
impl UnwindSafe for TabsTransition
Blanket Implementations§
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere T: Default + PartialEq<T> + Copy,
§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.