Skip to main content

Numeric

Trait Numeric 

Source
pub trait Numeric:
    Bindable
    + Copy
    + PartialOrd
    + Display
    + Sealed { }
Expand description

A number type a NumberField can be bound to: i32 or f64.

The browser’s number input and the runtime’s binding read these two, so the trait is sealed.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Numeric for f64

Source§

impl Numeric for i32

Implementors§