Trait skytable::types::IntoSkyhashBytes[][src]

pub trait IntoSkyhashBytes: Send + Sync {
    fn into_string(&self) -> String;
}
Expand description

Anything that implements this trait can be turned into a String. This trait is implemented for most primitive types by default using std’s ToString trait.

Implementing this trait

A trivial example:

use skytable::types::{IntoSkyhashBytes};

struct MyStringWrapper(String);

impl IntoSkyhashBytes for MyStringWrapper {
    fn into_string(&self) -> String {
        self.0.to_string()
    }
}

Required methods

fn into_string(&self) -> String[src]

Turn Self into a String

Implementations on Foreign Types

impl IntoSkyhashBytes for u8[src]

impl IntoSkyhashBytes for i8[src]

impl IntoSkyhashBytes for u16[src]

impl IntoSkyhashBytes for i16[src]

impl IntoSkyhashBytes for u32[src]

impl IntoSkyhashBytes for i32[src]

impl IntoSkyhashBytes for u64[src]

impl IntoSkyhashBytes for i64[src]

impl IntoSkyhashBytes for u128[src]

impl IntoSkyhashBytes for i128[src]

impl IntoSkyhashBytes for f32[src]

impl IntoSkyhashBytes for f64[src]

impl IntoSkyhashBytes for bool[src]

impl IntoSkyhashBytes for char[src]

impl IntoSkyhashBytes for usize[src]

impl IntoSkyhashBytes for isize[src]

impl IntoSkyhashBytes for String[src]

impl IntoSkyhashBytes for &str[src]

impl IntoSkyhashBytes for &String[src]

impl IntoSkyhashBytes for str[src]

Implementors