pub enum Separators {
Anywhere,
BetweenDigits,
None,
}Expand description
Where _ may separate the digits of a number.
§Examples
use lower_lang::Separators;
assert_eq!(Separators::default(), Separators::Anywhere);Variants§
Anywhere
After the first digit, anywhere and repeated (1_000, 1__0, 10_;
Rust, Kraken).
BetweenDigits
Only between two digits of the number’s radix: 1_000 and 0xFF_FF,
but not 1__0, 10_, 0x_FF, or 1_.5 (PHP 7.4+, JavaScript; Python
also accepts 0x_FF, which this rejects).
None
Never (C, PHP before 7.4).
Trait Implementations§
Source§impl Clone for Separators
impl Clone for Separators
impl Copy for Separators
Source§impl Debug for Separators
impl Debug for Separators
Source§impl Default for Separators
impl Default for Separators
impl Eq for Separators
Source§impl Hash for Separators
impl Hash for Separators
Source§impl PartialEq for Separators
impl PartialEq for Separators
impl StructuralPartialEq for Separators
Auto Trait Implementations§
impl Freeze for Separators
impl RefUnwindSafe for Separators
impl Send for Separators
impl Sync for Separators
impl Unpin for Separators
impl UnsafeUnpin for Separators
impl UnwindSafe for Separators
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