The ToStr
trait for converting to strings
ToStr
- A generic trait for converting a value to a stringToStrConsume
- Trait for converting a type to a string, consuming it in the process.of ToStr for ()
of ToStr for (A,) where <A: ToStr>
of ToStr for HashMap<A, B> where <A: ToStr + Hash + Eq, B: ToStr + Hash + Eq>
of ToStr for HashSet<A> where <A: ToStr + Hash + Eq>
of ToStr for (A, B) where <A: ToStr, B: ToStr>
of ToStr for (A, B, C) where <A: ToStr, B: ToStr, C: ToStr>
of ToStr for &'self [A] where <'self, A: ToStr>
of ToStr for ~[A] where <A: ToStr>
of ToStr for @[A] where <A: ToStr>
ToStr
A generic trait for converting a value to a string
to_str
fn to_str(&self) -> ~str
Converts the value of self
to an owned string
ToStrConsume
Trait for converting a type to a string, consuming it in the process.
into_str
fn into_str(self) -> ~str
Cosume and convert to a string.
ToStr
for ()
to_str
fn to_str(&self) -> ~str
ToStr
for (A,)
where <A: ToStr>
to_str
fn to_str(&self) -> ~str
ToStr
for HashMap<A, B>
where <A: ToStr + Hash + Eq, B: ToStr + Hash + Eq>
to_str
fn to_str(&self) -> ~str
ToStr
for HashSet<A>
where <A: ToStr + Hash + Eq>
to_str
fn to_str(&self) -> ~str
ToStr
for (A, B)
where <A: ToStr, B: ToStr>
to_str
fn to_str(&self) -> ~str
ToStr
for (A, B, C)
where <A: ToStr, B: ToStr, C: ToStr>
to_str
fn to_str(&self) -> ~str
ToStr
for &'self [A]
where <'self, A: ToStr>
to_str
fn to_str(&self) -> ~str
ToStr
for ~[A]
where <A: ToStr>
to_str
fn to_str(&self) -> ~str
ToStr
for @[A]
where <A: ToStr>
to_str
fn to_str(&self) -> ~str