pub enum VariantDataType {
String,
Bool,
Tristate,
Hex,
Int,
}
Variants
String
The data type underpinning the variant is a character string
Bool
The data type underpinning the variant is a boolean value
Tristate
The data type underpinning the variant is a tristate value
Hex
The data type underpinning the variant is a hexadecimal value
Int
The data type underpinning the variant is an integer value
Trait Implementations
sourceimpl Clone for VariantDataType
impl Clone for VariantDataType
sourcefn clone(&self) -> VariantDataType
fn clone(&self) -> VariantDataType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for VariantDataType
impl Debug for VariantDataType
sourceimpl From<&ConfigType> for VariantDataType
impl From<&ConfigType> for VariantDataType
sourcefn from(ct: &ConfigType) -> Self
fn from(ct: &ConfigType) -> Self
Converts a given ConfigType value to the associated VariantDataType value
sourceimpl Into<ConfigType> for VariantDataType
impl Into<ConfigType> for VariantDataType
sourcefn into(self) -> ConfigType
fn into(self) -> ConfigType
Converts a given VariantDataType back into a ConfigType
sourceimpl Ord for VariantDataType
impl Ord for VariantDataType
sourcefn cmp(&self, other: &VariantDataType) -> Ordering
fn cmp(&self, other: &VariantDataType) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<VariantDataType> for VariantDataType
impl PartialEq<VariantDataType> for VariantDataType
sourcefn eq(&self, other: &VariantDataType) -> bool
fn eq(&self, other: &VariantDataType) -> bool
sourceimpl PartialOrd<VariantDataType> for VariantDataType
impl PartialOrd<VariantDataType> for VariantDataType
sourcefn partial_cmp(&self, other: &VariantDataType) -> Option<Ordering>
fn partial_cmp(&self, other: &VariantDataType) -> Option<Ordering>
1.0.0 · sourcefn 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 Eq for VariantDataType
impl StructuralEq for VariantDataType
impl StructuralPartialEq for VariantDataType
Auto Trait Implementations
impl RefUnwindSafe for VariantDataType
impl Send for VariantDataType
impl Sync for VariantDataType
impl Unpin for VariantDataType
impl UnwindSafe for VariantDataType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more