提交 81e66ae1 编写于 作者: M Mahmut Bulut 提交者: Tim Chevalier

Renaming trait name UniqueStr to Trimmable

上级 8492a029
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
pub use PosixPath = path::PosixPath; pub use PosixPath = path::PosixPath;
pub use tuple::{CopyableTuple, ImmutableTuple, ExtendedTupleOps}; pub use tuple::{CopyableTuple, ImmutableTuple, ExtendedTupleOps};
pub use str::{StrSlice, UniqueStr}; pub use str::{StrSlice, Trimmable};
pub use vec::{ConstVector, CopyableVector, ImmutableVector}; pub use vec::{ConstVector, CopyableVector, ImmutableVector};
pub use vec::{ImmutableEqVector, ImmutableCopyableVector}; pub use vec::{ImmutableEqVector, ImmutableCopyableVector};
pub use vec::{MutableVector, MutableCopyableVector}; pub use vec::{MutableVector, MutableCopyableVector};
......
...@@ -2075,14 +2075,14 @@ fn test_from_buf_len() { ...@@ -2075,14 +2075,14 @@ fn test_from_buf_len() {
} }
pub trait UniqueStr { pub trait Trimmable {
pure fn trim() -> self; pure fn trim() -> self;
pure fn trim_left() -> self; pure fn trim_left() -> self;
pure fn trim_right() -> self; pure fn trim_right() -> self;
} }
/// Extension methods for strings /// Extension methods for strings
impl ~str: UniqueStr { impl ~str: Trimmable {
/// Returns a string with leading and trailing whitespace removed /// Returns a string with leading and trailing whitespace removed
#[inline] #[inline]
pure fn trim() -> ~str { trim(self) } pure fn trim() -> ~str { trim(self) }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册