Trait tiny_web::StrOrI64

source ·
pub trait StrOrI64 {
    // Required methods
    fn to_i64(&self) -> i64;
    fn to_str(&self) -> &str;
}
Expand description

Trait StrOrI64 defines a method for converting different types to i64.

Required Methods§

source

fn to_i64(&self) -> i64

The to_i64 method takes input data and returns an i64.

source

fn to_str(&self) -> &str

The to_str method takes input data and returns an &str.

Implementations on Foreign Types§

source§

impl StrOrI64 for &str

source§

fn to_i64(&self) -> i64

Implementation of the to_i64 method for the &str type.
Computes the hash of the &str and returns it as an i64.

source§

fn to_str(&self) -> &str

The to_str method takes input data and returns an &str. Simply returns the input i64.

source§

impl StrOrI64 for i64

source§

fn to_i64(&self) -> i64

Implementation of the to_i64 method for the i64 type.
Simply returns the input i64.

source§

fn to_str(&self) -> &str

The to_str method takes input data and returns an &str.

Implementors§