pub enum ParseError {
UnexpectedToken {
expected: String,
found: TokenKind,
},
UnexpectedEof,
InvalidDeclaration(String),
InvalidType(String),
InvalidAssertArgs {
macro_name: String,
arg_count: usize,
},
AssertNotFunctionMacro {
macro_name: String,
},
NestedAssertNotSupported,
MacroEndNotFound,
}Expand description
パースエラー(Phase 3 で拡張)
Variants§
UnexpectedToken
予期しないトークン
UnexpectedEof
予期しないファイル終端
InvalidDeclaration(String)
宣言エラー
InvalidType(String)
型エラー
InvalidAssertArgs
assert マクロの引数数が不正
AssertNotFunctionMacro
assert マクロがオブジェクトマクロとして呼ばれた
NestedAssertNotSupported
入れ子の assert はサポートされない
MacroEndNotFound
MacroEnd が見つからない
Trait Implementations§
Source§impl Debug for ParseError
impl Debug for ParseError
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnsafeUnpin for ParseError
impl UnwindSafe for ParseError
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