core: Camel case some lesser-used modules
This commit is contained in:
parent
6b43c0c1ad
commit
5394e34aa4
40 changed files with 187 additions and 169 deletions
|
@ -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) }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue