pub enum RuleNumber {
Integer(&'static str),
Decimal(&'static str),
Float32(f32),
Float64(f64),
}Expand description
One exact, operation-owned numeric literal emitted by the derive parser.
Unsuffixed decimal text stays textual until it is bound to the declared primitive. This prevents decimal rules from passing through binary float conversion before accepted-schema admission.
Variants§
Integer(&'static str)
Canonical signed or unsigned integer text.
Decimal(&'static str)
Exact unsuffixed base-10 decimal text.
Float32(f32)
Explicit f32 literal.
Float64(f64)
Explicit f64 literal.
Trait Implementations§
Source§impl Clone for RuleNumber
impl Clone for RuleNumber
Source§fn clone(&self) -> RuleNumber
fn clone(&self) -> RuleNumber
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 moreSource§impl Debug for RuleNumber
impl Debug for RuleNumber
Auto Trait Implementations§
impl Freeze for RuleNumber
impl RefUnwindSafe for RuleNumber
impl Send for RuleNumber
impl Sync for RuleNumber
impl Unpin for RuleNumber
impl UnsafeUnpin for RuleNumber
impl UnwindSafe for RuleNumber
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