#[non_exhaustive]pub enum DecimalPointLocalizationOption {
UsePreference,
UseSystemSetting,
UsePeriod,
UseComma,
}Expand description
How a decimal point is written when converting expression text
(DecimalPointLocalizationOptions).
Expression text is not locale-neutral. 1.5 and 1,5 are the same number
written for different stations, so converting between the stored form and
the form an operator reads has to say which convention is meant.
There is no zero variant, deliberately: the engine numbers these from one
and rejects zero with TS_Err_ValueIsInvalidOrOutOfRange. Passing a raw
integer is what makes that mistake easy, which is why these members take
this type instead.
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.
UsePreference
Follow the station’s TestStand preference.
UseSystemSetting
Follow the operating system’s regional setting.
UsePeriod
Always a period, whatever the station is set to.
UseComma
Always a comma, whatever the station is set to.
Implementations§
Trait Implementations§
Source§impl Clone for DecimalPointLocalizationOption
impl Clone for DecimalPointLocalizationOption
Source§fn clone(&self) -> DecimalPointLocalizationOption
fn clone(&self) -> DecimalPointLocalizationOption
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DecimalPointLocalizationOption
impl Eq for DecimalPointLocalizationOption
impl StructuralPartialEq for DecimalPointLocalizationOption
Auto Trait Implementations§
impl Freeze for DecimalPointLocalizationOption
impl RefUnwindSafe for DecimalPointLocalizationOption
impl Send for DecimalPointLocalizationOption
impl Sync for DecimalPointLocalizationOption
impl Unpin for DecimalPointLocalizationOption
impl UnsafeUnpin for DecimalPointLocalizationOption
impl UnwindSafe for DecimalPointLocalizationOption
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