From 79603f573e504163db7b5c2afa0917c27e3f98ed Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Mon, 8 Oct 2012 08:17:41 -0700 Subject: [PATCH] libcore: include the trim methods in the StrSlice trait --- src/libcore/str.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libcore/str.rs b/src/libcore/str.rs index d7d33b5528b5..d743f0c7f3be 100644 --- a/src/libcore/str.rs +++ b/src/libcore/str.rs @@ -2086,6 +2086,9 @@ pub trait StrSlice { pure fn to_upper() -> ~str; fn escape_default() -> ~str; fn escape_unicode() -> ~str; + fn trim() -> ~str; + fn trim_left() -> ~str; + fn trim_right() -> ~str; pure fn to_unique() -> ~str; pure fn char_at(i: uint) -> char; }