mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 22:05:31 +03:00
13 lines
251 B
Rust
13 lines
251 B
Rust
//! The trait for types that can be created from strings
|
|
|
|
// NB: transitionary, de-mode-ing.
|
|
#[forbid(deprecated_mode)];
|
|
#[forbid(deprecated_pattern)];
|
|
|
|
use option::Option;
|
|
|
|
pub trait FromStr {
|
|
static pure fn from_str(s: &str) -> Option<self>;
|
|
}
|
|
|