Skip to main content

Key

Trait Key 

Source
pub trait Key:
    Copy
    + Send
    + Sync
    + Ord
    + Debug
    + 'static {
    // Required method
    fn as_f64(self) -> f64;
}
Expand description

Key trait for supported types 支持的键类型约束

Required Methods§

Source

fn as_f64(self) -> f64

Convert to f64 转换为 f64

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 Key for i8

Source§

fn as_f64(self) -> f64

Source§

impl Key for i16

Source§

fn as_f64(self) -> f64

Source§

impl Key for i32

Source§

fn as_f64(self) -> f64

Source§

impl Key for i64

Source§

fn as_f64(self) -> f64

Source§

impl Key for i128

Source§

fn as_f64(self) -> f64

Source§

impl Key for isize

Source§

fn as_f64(self) -> f64

Source§

impl Key for u8

Source§

fn as_f64(self) -> f64

Source§

impl Key for u16

Source§

fn as_f64(self) -> f64

Source§

impl Key for u32

Source§

fn as_f64(self) -> f64

Source§

impl Key for u64

Source§

fn as_f64(self) -> f64

Source§

impl Key for u128

Source§

fn as_f64(self) -> f64

Source§

impl Key for usize

Source§

fn as_f64(self) -> f64

Implementors§