Sign in
fuchsia
/
third_party
/
rust
/
0.4
/
.
/
src
/
libcore
/
from_str.rs
blob: c4dd2536e2cfc23e20e7a2d3d6271802c26bc7d0 [
file
] [
log
] [
blame
]
//! 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
fn
from_str
(
s
:
&
str
)
->
Option
<
self
>;
}