Lines Matching refs:ErrorKind
12 kind: ErrorKind,
17 pub enum ErrorKind { enum
58 pub fn kind(&self) -> &ErrorKind { in kind() argument
63 Error { kind: ErrorKind::Syntax(err.to_string()) } in syntax()
68 Error { kind: ErrorKind::Unsupported(msg.to_string()) } in unsupported_anchor()
73 Error { kind: ErrorKind::Unsupported(msg.to_string()) } in unsupported_word()
79 Error { kind: ErrorKind::Unsupported(msg.to_string()) } in unsupported_longest_match()
83 Error { kind: ErrorKind::Serialize(message.to_string()) } in serialize()
87 Error { kind: ErrorKind::StateIDOverflow { max } } in state_id_overflow()
94 Error { kind: ErrorKind::PremultiplyOverflow { max, requested_max } } in premultiply_overflow()
101 ErrorKind::Syntax(_) => "syntax error", in description()
102 ErrorKind::Unsupported(_) => "unsupported syntax", in description()
103 ErrorKind::Serialize(_) => "serialization error", in description()
104 ErrorKind::StateIDOverflow { .. } => { in description()
107 ErrorKind::PremultiplyOverflow { .. } => { in description()
117 ErrorKind::Syntax(ref msg) => write!(f, "{}", msg), in fmt()
118 ErrorKind::Unsupported(ref msg) => write!(f, "{}", msg), in fmt()
119 ErrorKind::Serialize(ref msg) => { in fmt()
122 ErrorKind::StateIDOverflow { max } => write!( in fmt()
129 ErrorKind::PremultiplyOverflow { max, requested_max } => { in fmt()