pub struct SourceRoundTripReport {
pub byte_identical: bool,
pub input_len: usize,
pub output_len: usize,
pub first_diff_offset: Option<usize>,
pub diff_context: Option<DiffContext>,
pub warnings: Vec<AsmWarning>,
}Expand description
Result of roundtrip_through_source.
Fields§
§byte_identical: boolWhether the rebuilt bytes equal the input bytes.
input_len: usizeLength of the input in bytes.
output_len: usizeLength of the rebuilt bytes.
first_diff_offset: Option<usize>Offset of the first byte that differs, when the round-trip
failed; None when the result is byte-identical.
diff_context: Option<DiffContext>16-byte excerpts of input and output bytes around the first divergence. Populated only on mismatch.
warnings: Vec<AsmWarning>verify_asm findings produced during the round-trip. Empty
for a clean decompile output; populated when the .ud
in-flight had @asm lines whose text disagreed with their
pinned bytes.
Trait Implementations§
Source§impl Clone for SourceRoundTripReport
impl Clone for SourceRoundTripReport
Source§fn clone(&self) -> SourceRoundTripReport
fn clone(&self) -> SourceRoundTripReport
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 moreAuto Trait Implementations§
impl Freeze for SourceRoundTripReport
impl RefUnwindSafe for SourceRoundTripReport
impl Send for SourceRoundTripReport
impl Sync for SourceRoundTripReport
impl Unpin for SourceRoundTripReport
impl UnsafeUnpin for SourceRoundTripReport
impl UnwindSafe for SourceRoundTripReport
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