Enum Representation
#[non_exhaustive]pub enum Representation {
Linear,
Logarithmic,
Boolean,
PureNumber,
HexNumber,
IPV4Address,
MACAddress,
}Expand description
Recommended UI representation for a numeric feature.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Linear
Logarithmic
Boolean
PureNumber
HexNumber
IPV4Address
Display as dotted-quad IPv4 address.
MACAddress
Display as colon-separated MAC address.
Trait Implementations§
§impl Clone for Representation
impl Clone for Representation
§fn clone(&self) -> Representation
fn clone(&self) -> Representation
Returns a duplicate 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 Debug for Representation
impl Debug for Representation
§impl<'de> Deserialize<'de> for Representation
impl<'de> Deserialize<'de> for Representation
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Representation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Representation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Hash for Representation
impl Hash for Representation
§impl PartialEq for Representation
impl PartialEq for Representation
§impl Serialize for Representation
impl Serialize for Representation
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Representation
impl Eq for Representation
impl StructuralPartialEq for Representation
Auto Trait Implementations§
impl Freeze for Representation
impl RefUnwindSafe for Representation
impl Send for Representation
impl Sync for Representation
impl Unpin for Representation
impl UnwindSafe for Representation
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