pub enum FromError {
MissingNode,
ParseIntError(ParseIntError),
ParseFloatError(ParseFloatError),
}
Expand description
Errors that can occur when converting an apollo-parser CST to an apollo-encoder one. These errors don’t give a lot of context at the moment. Before converting CSTs, you should make sure that your parse tree is complete and valid.
Variants§
MissingNode
the parse tree is missing a node
ParseIntError(ParseIntError)
expected to parse a i32
ParseFloatError(ParseFloatError)
expected to parse a f64
Trait Implementations§
Source§impl Error for FromError
impl Error for FromError
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<ParseFloatError> for FromError
impl From<ParseFloatError> for FromError
Source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for FromError
impl From<ParseIntError> for FromError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FromError
impl RefUnwindSafe for FromError
impl Send for FromError
impl Sync for FromError
impl Unpin for FromError
impl UnwindSafe for FromError
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