core: Mark Char trait experimental

This commit is contained in:
Brian Anderson 2014-10-08 17:05:12 -07:00
parent 41fb8f77ee
commit 070e691379

View File

@ -229,6 +229,7 @@ pub fn len_utf8_bytes(c: char) -> uint {
}
/// Basic `char` manipulations.
#[experimental = "trait organization may change"]
pub trait Char {
/// Checks if a `char` parses as a numeric digit in the given radix.
///
@ -315,6 +316,7 @@ pub trait Char {
fn encode_utf16(&self, dst: &mut [u16]) -> Option<uint>;
}
#[experimental = "trait is experimental"]
impl Char for char {
fn is_digit_radix(&self, radix: uint) -> bool { is_digit_radix(*self, radix) }