Lines Matching defs:Error
9 pub struct Error {
13 impl error::Error for Error {
18 fn cause(&self) -> Option<&error::Error> {
28 impl fmt::Display for Error {
29 fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
41 Io(io::Error),
47 pub fn from_io(e: io::Error) -> Error {
48 Error {
53 pub fn from_num(e: num::ParseIntError) -> Error {
54 Error {
59 pub fn from_utf8(e: str::Utf8Error) -> Error {
60 Error {
65 pub fn from_str(s: &'static str) -> Error {
66 Error {