pub struct NumberSeparators { /* private fields */ }Expand description
The decimal separator and the group separator that a machine writes in numbers, such as .
and , in 1,234.5.
Implementations§
Source§impl NumberSeparators
impl NumberSeparators
Sourcepub fn new(
decimal: char,
group: char,
) -> Result<NumberSeparators, NumberSeparatorsError>
pub fn new( decimal: char, group: char, ) -> Result<NumberSeparators, NumberSeparatorsError>
The separators decimal and group.
§Errors
Returns an error when they are the same character, or when one is a digit.
Trait Implementations§
Source§impl Clone for NumberSeparators
impl Clone for NumberSeparators
Source§fn clone(&self) -> NumberSeparators
fn clone(&self) -> NumberSeparators
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 NumberSeparators
Source§impl Debug for NumberSeparators
impl Debug for NumberSeparators
Source§impl<'de> Deserialize<'de> for NumberSeparators
impl<'de> Deserialize<'de> for NumberSeparators
Source§fn deserialize<D>(
deserializer: D,
) -> Result<NumberSeparators, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<NumberSeparators, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
The two characters as one text, such as ".,".
Source§impl Display for NumberSeparators
impl Display for NumberSeparators
impl Eq for NumberSeparators
Source§impl FromStr for NumberSeparators
impl FromStr for NumberSeparators
Source§fn from_str(text: &str) -> Result<NumberSeparators, NumberSeparatorsError>
fn from_str(text: &str) -> Result<NumberSeparators, NumberSeparatorsError>
The two characters of the decimal and the group separator, such as .,.
Source§type Err = NumberSeparatorsError
type Err = NumberSeparatorsError
The associated error which can be returned from parsing.
Source§impl Hash for NumberSeparators
impl Hash for NumberSeparators
Source§impl PartialEq for NumberSeparators
impl PartialEq for NumberSeparators
Source§impl Serialize for NumberSeparators
impl Serialize for NumberSeparators
Source§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 StructuralPartialEq for NumberSeparators
Auto Trait Implementations§
impl Forget for NumberSeparators
impl Freeze for NumberSeparators
impl Move for NumberSeparators
impl RefUnwindSafe for NumberSeparators
impl Send for NumberSeparators
impl Sync for NumberSeparators
impl Unpin for NumberSeparators
impl UnsafeUnpin for NumberSeparators
impl UnwindSafe for NumberSeparators
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.