Trait ToStr

Source
pub trait ToStr {
    // Required method
    fn to_str(&self) -> String;
}
Expand description

Trait for casting: Defines how to convert when cast to a string.

Required Methods§

Source

fn to_str(&self) -> String

Implementations on Foreign Types§

Source§

impl ToStr for &str

Source§

fn to_str(&self) -> String

Source§

impl ToStr for bool

Source§

fn to_str(&self) -> String

Source§

impl ToStr for f32

Source§

fn to_str(&self) -> String

Source§

impl ToStr for f64

Source§

fn to_str(&self) -> String

Source§

impl ToStr for i8

Source§

fn to_str(&self) -> String

Source§

impl ToStr for i16

Source§

fn to_str(&self) -> String

Source§

impl ToStr for i32

Source§

fn to_str(&self) -> String

Source§

impl ToStr for i64

Source§

fn to_str(&self) -> String

Source§

impl ToStr for isize

Source§

fn to_str(&self) -> String

Source§

impl ToStr for u8

Source§

fn to_str(&self) -> String

Source§

impl ToStr for u16

Source§

fn to_str(&self) -> String

Source§

impl ToStr for u32

Source§

fn to_str(&self) -> String

Source§

impl ToStr for u64

Source§

fn to_str(&self) -> String

Source§

impl ToStr for usize

Source§

fn to_str(&self) -> String

Source§

impl ToStr for String

Source§

fn to_str(&self) -> String

Implementors§