pub enum Expected {
Char(char),
Tag(&'static str),
Byte(u8),
ByteTag(&'static [u8]),
Description(&'static str),
Eof,
}Expand description
パース失敗時の期待トークン。
Variants§
Char(char)
特定の文字を期待
Tag(&'static str)
特定の文字列タグを期待
Byte(u8)
特定のバイトを期待(将来の bytes 対応用)
ByteTag(&'static [u8])
特定のバイト列タグを期待(将来の bytes 対応用)
Description(&'static str)
説明的な期待(“digit”, “identifier” 等)
Eof
入力の終端を期待
Trait Implementations§
impl Eq for Expected
impl StructuralPartialEq for Expected
Auto Trait Implementations§
impl Freeze for Expected
impl RefUnwindSafe for Expected
impl Send for Expected
impl Sync for Expected
impl Unpin for Expected
impl UnsafeUnpin for Expected
impl UnwindSafe for Expected
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