2012-09-19 18:52:32 -05:00
|
|
|
//! The trait for types that can be created from strings
|
|
|
|
|
2012-09-20 19:18:18 -05:00
|
|
|
// NB: transitionary, de-mode-ing.
|
|
|
|
#[forbid(deprecated_mode)];
|
|
|
|
#[forbid(deprecated_pattern)];
|
|
|
|
|
2012-09-03 17:59:37 -05:00
|
|
|
use option::Option;
|
|
|
|
|
2012-09-28 19:41:45 -05:00
|
|
|
pub trait FromStr {
|
2012-09-03 16:14:17 -05:00
|
|
|
static fn from_str(s: &str) -> Option<self>;
|
|
|
|
}
|
2012-09-03 17:59:37 -05:00
|
|
|
|