Function std::old_io::standard_errorUnstable
[-] [+]
[src]
pub fn standard_error(kind: IoErrorKind) -> IoError
Creates a standard error for a commonly used flavor of error. The detail
field of the returned error will always be None
.
Example
fn main() { use std::old_io as io; let eof = io::standard_error(io::EndOfFile); let einval = io::standard_error(io::InvalidInput); }use std::old_io as io; let eof = io::standard_error(io::EndOfFile); let einval = io::standard_error(io::InvalidInput);