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 with the evidence needed for a compatibility report.
Fields§
§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 WIR 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§fn clone(&self) -> RoundTripRecord
fn clone(&self) -> RoundTripRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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