Enum ui2::prelude::InteractionState
source · pub enum InteractionState {
Enabled,
Hovered,
Active,
Focused,
Disabled,
}
Variants§
Implementations§
source§impl InteractionState
impl InteractionState
pub fn if_enabled(&self, enabled: bool) -> Self
Trait Implementations§
source§impl Clone for InteractionState
impl Clone for InteractionState
source§fn clone(&self) -> InteractionState
fn clone(&self) -> InteractionState
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 moresource§impl Default for InteractionState
impl Default for InteractionState
source§fn default() -> InteractionState
fn default() -> InteractionState
Returns the “default value” for a type. Read more
source§impl Display for InteractionState
impl Display for InteractionState
source§impl IntoEnumIterator for InteractionState
impl IntoEnumIterator for InteractionState
type Iterator = InteractionStateIter
fn iter() -> InteractionStateIter ⓘ
source§impl PartialEq<InteractionState> for InteractionState
impl PartialEq<InteractionState> for InteractionState
source§fn eq(&self, other: &InteractionState) -> bool
fn eq(&self, other: &InteractionState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for InteractionState
impl StructuralPartialEq for InteractionState
Auto Trait Implementations§
impl RefUnwindSafe for InteractionState
impl Send for InteractionState
impl Sync for InteractionState
impl Unpin for InteractionState
impl UnwindSafe for InteractionState
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
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> 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> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere T: Default + PartialEq<T> + Copy,
source§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.