Trait 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§