Enum patternfly_yew::components::form::CheckboxState
source · pub enum CheckboxState {
Checked,
Unchecked,
Indeterminate,
}
Expand description
The state of a checkbox.
In addition to the obvious two states (checked and unchecked), a checkbox can also have an “indeterminate” state.
This enum helps to work with this tri-state value. A boolean can easily converted into the
CheckboxState
. When converting back to a boolean, only CheckboxState::Checked
will turn
into true
.
Variants§
Trait Implementations§
source§impl Clone for CheckboxState
impl Clone for CheckboxState
source§fn clone(&self) -> CheckboxState
fn clone(&self) -> CheckboxState
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 Debug for CheckboxState
impl Debug for CheckboxState
source§impl Default for CheckboxState
impl Default for CheckboxState
source§fn default() -> CheckboxState
fn default() -> CheckboxState
Returns the “default value” for a type. Read more
source§impl From<CheckboxState> for Option<bool>
impl From<CheckboxState> for Option<bool>
source§fn from(value: CheckboxState) -> Self
fn from(value: CheckboxState) -> Self
Converts to this type from the input type.
source§impl From<CheckboxState> for bool
impl From<CheckboxState> for bool
source§fn from(value: CheckboxState) -> Self
fn from(value: CheckboxState) -> Self
Converts to this type from the input type.
source§impl From<bool> for CheckboxState
impl From<bool> for CheckboxState
source§impl IntoPropValue<CheckboxState> for bool
impl IntoPropValue<CheckboxState> for bool
source§fn into_prop_value(self) -> CheckboxState
fn into_prop_value(self) -> CheckboxState
Convert
self
to a value of a Properties
struct.source§impl PartialEq for CheckboxState
impl PartialEq for CheckboxState
source§fn eq(&self, other: &CheckboxState) -> bool
fn eq(&self, other: &CheckboxState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CheckboxState
impl Eq for CheckboxState
impl StructuralPartialEq for CheckboxState
Auto Trait Implementations§
impl Freeze for CheckboxState
impl RefUnwindSafe for CheckboxState
impl Send for CheckboxState
impl Sync for CheckboxState
impl Unpin for CheckboxState
impl UnwindSafe for CheckboxState
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.