Enum aravis::GcRepresentation
source · #[non_exhaustive]pub enum GcRepresentation {
Undefined,
Linear,
Logarithmic,
Boolean,
PureNumber,
HexNumber,
Ipv4Address,
MacAddress,
}
Expand description
Number representation formats.
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.
Undefined
undefined representation
Linear
number presented on linear scale (e.g. on a linear slider)
Logarithmic
number presented on logarithmic scale (e.g. on a logarithmic slider)
Boolean
binary choice (e.g. a checkbox)
PureNumber
number presented in an editable field (e.g. a spinbox)
HexNumber
number presented in hexadecimal format
Ipv4Address
IPv4 address
MacAddress
MAC address
Trait Implementations§
source§impl Clone for GcRepresentation
impl Clone for GcRepresentation
source§fn clone(&self) -> GcRepresentation
fn clone(&self) -> GcRepresentation
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 GcRepresentation
impl Debug for GcRepresentation
source§impl Display for GcRepresentation
impl Display for GcRepresentation
source§impl<'a> FromValue<'a> for GcRepresentation
impl<'a> FromValue<'a> for GcRepresentation
§type Checker = GenericValueTypeChecker<GcRepresentation>
type Checker = GenericValueTypeChecker<GcRepresentation>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl Hash for GcRepresentation
impl Hash for GcRepresentation
source§impl Ord for GcRepresentation
impl Ord for GcRepresentation
source§fn cmp(&self, other: &GcRepresentation) -> Ordering
fn cmp(&self, other: &GcRepresentation) -> Ordering
1.21.0 · source§fn 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
source§impl PartialEq<GcRepresentation> for GcRepresentation
impl PartialEq<GcRepresentation> for GcRepresentation
source§fn eq(&self, other: &GcRepresentation) -> bool
fn eq(&self, other: &GcRepresentation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<GcRepresentation> for GcRepresentation
impl PartialOrd<GcRepresentation> for GcRepresentation
source§fn partial_cmp(&self, other: &GcRepresentation) -> Option<Ordering>
fn partial_cmp(&self, other: &GcRepresentation) -> 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 moresource§impl StaticType for GcRepresentation
impl StaticType for GcRepresentation
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToValue for GcRepresentation
impl ToValue for GcRepresentation
source§impl ValueType for GcRepresentation
impl ValueType for GcRepresentation
§type Type = GcRepresentation
type Type = GcRepresentation
Type to get the
Type
from. Read moreimpl Copy for GcRepresentation
impl Eq for GcRepresentation
impl StructuralEq for GcRepresentation
impl StructuralPartialEq for GcRepresentation
Auto Trait Implementations§
impl RefUnwindSafe for GcRepresentation
impl Send for GcRepresentation
impl Sync for GcRepresentation
impl Unpin for GcRepresentation
impl UnwindSafe for GcRepresentation
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
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.