1
Fork 0

core: Camel case some lesser-used modules

This commit is contained in:
Brian Anderson 2012-08-13 16:20:27 -07:00
parent 6b43c0c1ad
commit 5394e34aa4
40 changed files with 187 additions and 169 deletions

View file

@ -1,19 +1,19 @@
trait to_bytes {
trait ToBytes {
fn to_bytes() -> ~[u8];
}
impl ~[u8]: to_bytes {
impl ~[u8]: ToBytes {
fn to_bytes() -> ~[u8] { copy self }
}
impl @~[u8]: to_bytes {
impl @~[u8]: ToBytes {
fn to_bytes() -> ~[u8] { copy *self }
}
impl ~str: to_bytes {
impl ~str: ToBytes {
fn to_bytes() -> ~[u8] { str::bytes(self) }
}
impl @(~str): to_bytes {
impl @(~str): ToBytes {
fn to_bytes() -> ~[u8] { str::bytes(*self) }
}