[−][src]Enum lf2_parse::Error
Variants
Error while decoding a data file.
Fields of DecodeError
error: DecodeError
Underlying DecodeError
.
Error while decoding a data file.
Fields of EncodeError
error: EncodeError
Underlying EncodeError
.
Failed to open data file from the file system.
Fields of FileOpenError
Failed to read data from a data file.
Fields of FileReadError
Fields of FrameNumberNonUnique
frame_number: FrameNumber
FrameNumber
that is used across multiple frames.
frame_pairs: Vec<Pair<'i, Rule>>
Parsed Pair
s of the frames with non-unique frame numbers.
DecodedDataInvalidUtf8(FromUtf8Error)
Data file is not valid UTF8.
Expected to parse object data, but got nothing.
ObjectData
is successfully parsed, but there is surplus data.
Fields of ObjectDataSurplus
object_data: ObjectData
The successfully parsed ObjectData
.
surplus_pairs: Pairs<'i, Rule>
Additional pairs.
Pest could not parse the input with the object grammar.
A pair failed to parse as a BdyKind
.
Fields of ParseBdyKind
value_pair: Pair<'i, Rule>
The value that failed to be parsed.
error: BdyKindParseError
The BdyKindParseError
from the parse attempt,
A pair failed to parse as an CPointKind
.
Fields of ParseCPointKind
value_pair: Pair<'i, Rule>
The value that failed to be parsed.
error: CPointKindParseError
The CPointKindParseError
from the parse attempt,
A pair failed to parse as an ItrKind
.
Fields of ParseItrKind
value_pair: Pair<'i, Rule>
The value that failed to be parsed.
error: ItrKindParseError
The ItrKindParseError
from the parse attempt,
A pair failed to parse as an Effect
.
Fields of ParseItrEffect
value_pair: Pair<'i, Rule>
The value that failed to be parsed.
error: EffectParseError
The EffectParseError
from the parse attempt,
A pair failed to parse as an OPointKind
.
Fields of ParseOPointKind
value_pair: Pair<'i, Rule>
The value that failed to be parsed.
error: OPointKindParseError
The OPointKindParseError
from the parse attempt,
Failed to parse opoint: action:
value as FrameNumberNext
.
Fields of ParseOPointAction
value_pair: Pair<'i, Rule>
The value that failed to be parsed.
error: ParseIntError
The OPointKindParseError
from the parse attempt,
A pair failed to parse as a WPointKind
.
Fields of ParseWPointKind
value_pair: Pair<'i, Rule>
The value that failed to be parsed.
error: WPointKindParseError
The WPointKindParseError
from the parse attempt,
Failed to parse weaponact:
value as FrameNumberNext
.
Fields of ParseWeaponAct
value_pair: Pair<'i, Rule>
The value that failed to be parsed.
error: ParseIntError
The ParseIntError
from the parse attempt,
Failed to parse attacking:
value as WeaponStrengthIndex
.
Fields of ParseWeaponStrengthIndex
value_pair: Pair<'i, Rule>
The value that failed to be parsed.
error: ParseIntError
The ParseIntError
from the parse attempt,
A pair failed to parse as a float.
Fields of ParseFloat
field: &'static str
Human readable name of the field.
value_pair: Pair<'i, Rule>
The string that failed to be parsed into its value type.
error: ParseFloatError
The ParseFloatError
from the parse attempt,
A pair failed to parse as an integer.
Fields of ParseInt
field: &'static str
Human readable name of the field.
value_pair: Pair<'i, Rule>
The string that failed to be parsed into its value type.
error: ParseIntError
The ParseIntError
from the parse attempt,
A pair failed to parse as a Path
.
Fields of ParsePath
Frame element was built but returned with None
.
If this is reached, there is a bug in the Element
object data parsing
code.
Error should be unreachable based on the lf2_object.pest
grammar.
If this variant is hit, then there is a bug in either the grammar, or pest.
Fields of GrammarSingle
Error should be unreachable based on the lf2_object.pest
grammar.
If this variant is hit, then there is a bug in either the grammar, or pest.
Fields of Grammar
Expected a tag value, but got nothing.
Error should be unreachable based on the lf2_object.pest
grammar.
If this variant is hit, then there is a bug in either the grammar, or pest.
Errors when parsing a string as a State
.
Fields of StateParse
value_pair: Pair<'i, Rule>
The string that failed to be parsed into the State
.
error: StateParseError
The underlying error.
Variant that should not be reachable, such as through an Infallible
error type..
Fields of Unreachable
Trait Implementations
impl<'i> Debug for Error<'i>
[src]
impl<'i> Display for Error<'i>
[src]
impl<'i> Error for Error<'i>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<'e> From<DecodeError> for Error<'e>
[src]
fn from(error: DecodeError) -> Self
[src]
impl<'e> From<EncodeError> for Error<'e>
[src]
fn from(error: EncodeError) -> Self
[src]
impl<'i> From<Error<Rule>> for Error<'i>
[src]
impl<'e> From<FromUtf8Error> for Error<'e>
[src]
fn from(e: FromUtf8Error) -> Self
[src]
Auto Trait Implementations
impl<'i> !RefUnwindSafe for Error<'i>
impl<'i> !Send for Error<'i>
impl<'i> !Sync for Error<'i>
impl<'i> Unpin for Error<'i>
impl<'i> !UnwindSafe for Error<'i>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,