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