pub enum InputParserError {
InputNotFound(String),
FileReadError(PathBuf),
ParseIntError(ParseIntError),
ParseBoolError(ParseBoolError),
SyntaxError(SyntaxError),
SyntaxTreeError,
}
Variants§
InputNotFound(String)
FileReadError(PathBuf)
ParseIntError(ParseIntError)
ParseBoolError(ParseBoolError)
SyntaxError(SyntaxError)
SyntaxTreeError
Implementations§
Source§impl InputParserError
impl InputParserError
pub fn set_path(&mut self, path: &str, _content: &[String])
pub fn get_path(&self) -> Option<&str>
pub fn array_index(actual: String, span: &Span<'_>) -> Self
pub fn integer_type_mismatch( expected: IntegerType, received: IntegerType, span: &Span<'_>, ) -> Self
pub fn invalid_char(character: String, span: &Span<'_>) -> Self
pub fn invalid_string_dimensions(span: &Span<'_>) -> Self
pub fn invalid_string_length( expected: usize, received: usize, span: &Span<'_>, ) -> Self
pub fn implicit_type(data_type: DataType, implicit: NumberValue<'_>) -> Self
pub fn implicit_group(number: NumberValue<'_>) -> Self
pub fn data_type_mismatch(data_type: DataType, value: Value<'_>) -> Self
pub fn expression_type_mismatch( type_: Type<'_>, expression: Expression<'_>, ) -> Self
pub fn array_inline_length( number: usize, array: ArrayInlineExpression<'_>, ) -> Self
pub fn array_init_length( expected: Vec<usize>, actual: Vec<usize>, span: &Span<'_>, ) -> Self
pub fn input_section_header(header: Header<'_>) -> Self
pub fn public_section(header: Header<'_>) -> Self
pub fn private_section(header: Header<'_>) -> Self
pub fn table(table: Table<'_>) -> Self
pub fn tuple_length(expected: usize, actual: usize, span: &Span<'_>) -> Self
pub fn section(header: Header<'_>) -> Self
Trait Implementations§
Source§impl Debug for InputParserError
impl Debug for InputParserError
Source§impl Display for InputParserError
impl Display for InputParserError
Source§impl Error for InputParserError
impl Error for InputParserError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error<Rule>> for InputParserError
impl From<Error<Rule>> for InputParserError
Source§impl From<ParseBoolError> for InputParserError
impl From<ParseBoolError> for InputParserError
Source§fn from(source: ParseBoolError) -> Self
fn from(source: ParseBoolError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for InputParserError
impl From<ParseIntError> for InputParserError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<SyntaxError> for InputParserError
impl From<SyntaxError> for InputParserError
Source§fn from(source: InputSyntaxError) -> Self
fn from(source: InputSyntaxError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InputParserError
impl RefUnwindSafe for InputParserError
impl Send for InputParserError
impl Sync for InputParserError
impl Unpin for InputParserError
impl UnwindSafe for InputParserError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more