Add deprecated aliases for the old {Owned,}StrAsciiExt trait names.
The deprecation warning does not seem to be emitted right now, but hopefully that’ll be fixed.
This commit is contained in:
parent
b86574bfff
commit
235bb3fb1f
1 changed files with 7 additions and 0 deletions
|
|
@ -26,6 +26,13 @@ use string::String;
|
|||
use to_string::IntoStr;
|
||||
use vec::Vec;
|
||||
|
||||
#[deprecated="this trait has been renamed to `AsciiExt`"]
|
||||
pub use StrAsciiExt = self::AsciiExt;
|
||||
|
||||
#[deprecated="this trait has been renamed to `OwnedAsciiExt`"]
|
||||
pub use OwnedStrAsciiExt = self::OwnedAsciiExt;
|
||||
|
||||
|
||||
/// Datatype to hold one ascii character. It wraps a `u8`, with the highest bit always zero.
|
||||
#[deriving(Clone, PartialEq, PartialOrd, Ord, Eq, Hash)]
|
||||
pub struct Ascii { chr: u8 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue