pub struct LexerTestExpected {
pub success: bool,
pub count: usize,
pub tokens: Vec<TokenData>,
pub errors: Vec<String>,
}Expand description
Expected lexer test results for comparison.
This struct represents the expected output of a lexer test, including success status, token count, token data, and any expected errors.
Fields§
§success: boolWhether the lexing was expected to succeed.
count: usizeThe expected number of tokens.
tokens: Vec<TokenData>The expected token data.
errors: Vec<String>Any expected error messages.
Trait Implementations§
Source§impl Debug for LexerTestExpected
impl Debug for LexerTestExpected
Source§impl<'de> Deserialize<'de> for LexerTestExpected
impl<'de> Deserialize<'de> for LexerTestExpected
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LexerTestExpected
impl PartialEq for LexerTestExpected
Source§impl Serialize for LexerTestExpected
impl Serialize for LexerTestExpected
impl StructuralPartialEq for LexerTestExpected
Auto Trait Implementations§
impl Freeze for LexerTestExpected
impl RefUnwindSafe for LexerTestExpected
impl Send for LexerTestExpected
impl Sync for LexerTestExpected
impl Unpin for LexerTestExpected
impl UnsafeUnpin for LexerTestExpected
impl UnwindSafe for LexerTestExpected
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