Enum full_moon::ast::AstError [−][src]
pub enum AstError<'a> { Empty, NoEof, UnexpectedToken { token: Token<'a>, additional: Option<Cow<'a, str>>, }, }
Expand description
An error that occurs when creating the ast after tokenizing
Variants
There were no tokens passed, which shouldn’t happen normally
Tokens passed had no end of file token, which shouldn’t happen normally
An unexpected token, the most likely scenario when getting an AstError
Show fields
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for AstError<'a>
impl<'a> UnwindSafe for AstError<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more