Enum aravis::GcDisplayNotation
source · #[non_exhaustive]pub enum GcDisplayNotation {
Undefined,
Automatic,
Fixed,
Scientific,
}
Expand description
Number display notations for showing numbers in user interfaces.
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 number notation
Automatic
automatically detect whether to use fixed or scientific number notation
Fixed
used fixed (i.e. decimal) notation for displaying numbers
Scientific
use scientific notation for displaying numbers
Trait Implementations§
source§impl Clone for GcDisplayNotation
impl Clone for GcDisplayNotation
source§fn clone(&self) -> GcDisplayNotation
fn clone(&self) -> GcDisplayNotation
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 GcDisplayNotation
impl Debug for GcDisplayNotation
source§impl Display for GcDisplayNotation
impl Display for GcDisplayNotation
source§impl<'a> FromValue<'a> for GcDisplayNotation
impl<'a> FromValue<'a> for GcDisplayNotation
§type Checker = GenericValueTypeChecker<GcDisplayNotation>
type Checker = GenericValueTypeChecker<GcDisplayNotation>
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 GcDisplayNotation
impl Hash for GcDisplayNotation
source§impl Ord for GcDisplayNotation
impl Ord for GcDisplayNotation
source§fn cmp(&self, other: &GcDisplayNotation) -> Ordering
fn cmp(&self, other: &GcDisplayNotation) -> 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<GcDisplayNotation> for GcDisplayNotation
impl PartialEq<GcDisplayNotation> for GcDisplayNotation
source§fn eq(&self, other: &GcDisplayNotation) -> bool
fn eq(&self, other: &GcDisplayNotation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<GcDisplayNotation> for GcDisplayNotation
impl PartialOrd<GcDisplayNotation> for GcDisplayNotation
source§fn partial_cmp(&self, other: &GcDisplayNotation) -> Option<Ordering>
fn partial_cmp(&self, other: &GcDisplayNotation) -> 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 GcDisplayNotation
impl StaticType for GcDisplayNotation
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToValue for GcDisplayNotation
impl ToValue for GcDisplayNotation
source§impl ValueType for GcDisplayNotation
impl ValueType for GcDisplayNotation
§type Type = GcDisplayNotation
type Type = GcDisplayNotation
Type to get the
Type
from. Read moreimpl Copy for GcDisplayNotation
impl Eq for GcDisplayNotation
impl StructuralEq for GcDisplayNotation
impl StructuralPartialEq for GcDisplayNotation
Auto Trait Implementations§
impl RefUnwindSafe for GcDisplayNotation
impl Send for GcDisplayNotation
impl Sync for GcDisplayNotation
impl Unpin for GcDisplayNotation
impl UnwindSafe for GcDisplayNotation
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
.