pub struct ParserTestExpected {
pub success: bool,
pub node_count: usize,
pub ast_structure: AstNodeData,
pub errors: Vec<String>,
}Expand description
Expected parser test results for comparison.
This struct represents the expected output of a parser test, including success status, node count, AST structure, and any expected errors.
Fields§
§success: boolWhether the parsing was expected to succeed.
node_count: usizeThe expected number of nodes in the AST.
ast_structure: AstNodeDataThe expected structure of the AST.
errors: Vec<String>Any expected error messages.
Trait Implementations§
Source§impl Clone for ParserTestExpected
impl Clone for ParserTestExpected
Source§fn clone(&self) -> ParserTestExpected
fn clone(&self) -> ParserTestExpected
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParserTestExpected
impl Debug for ParserTestExpected
Source§impl<'de> Deserialize<'de> for ParserTestExpected
impl<'de> Deserialize<'de> for ParserTestExpected
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 ParserTestExpected
impl PartialEq for ParserTestExpected
Source§impl Serialize for ParserTestExpected
impl Serialize for ParserTestExpected
impl StructuralPartialEq for ParserTestExpected
Auto Trait Implementations§
impl Freeze for ParserTestExpected
impl RefUnwindSafe for ParserTestExpected
impl Send for ParserTestExpected
impl Sync for ParserTestExpected
impl Unpin for ParserTestExpected
impl UnsafeUnpin for ParserTestExpected
impl UnwindSafe for ParserTestExpected
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