#[non_exhaustive]pub struct RoundTripRecord {
pub input_identity: String,
pub locale: Locale,
pub catalog_version: u32,
pub parse_ok: bool,
pub emit_ok: bool,
pub reparse_ok: bool,
pub equivalent: bool,
pub error: Option<String>,
}Expand description
A recorded round-trip result for regression and contract checks.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.input_identity: StringSHA-256 of the input Workshop text.
locale: LocaleThe locale the text was parsed and emitted in.
catalog_version: u32The catalog schema version used.
parse_ok: boolWhether the input parsed.
emit_ok: boolWhether the parsed program emitted.
reparse_ok: boolWhether the emitted text reparsed.
equivalent: boolWhether the original and round-tripped public programs are equivalent.
error: Option<String>A structured failure message, when any stage failed.
Trait Implementations§
Source§impl Clone for RoundTripRecord
impl Clone for RoundTripRecord
Source§impl Debug for RoundTripRecord
impl Debug for RoundTripRecord
Source§impl PartialEq for RoundTripRecord
impl PartialEq for RoundTripRecord
impl StructuralPartialEq for RoundTripRecord
Auto Trait Implementations§
impl Freeze for RoundTripRecord
impl RefUnwindSafe for RoundTripRecord
impl Send for RoundTripRecord
impl Sync for RoundTripRecord
impl Unpin for RoundTripRecord
impl UnsafeUnpin for RoundTripRecord
impl UnwindSafe for RoundTripRecord
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