pub struct TouchMap {
pub overflowed: bool,
pub skipped: bool,
pub records: Vec<TouchRecord>,
}Expand description
A decoded touch map, with its honesty flags preserved.
Fields§
§overflowed: boolThe touch log overflowed MAX_TOUCH_RECORDS; the map is a partial
view of the instruction’s effects.
skipped: boolThe encoder dropped at least one touched range it could not represent; the map is partial.
records: Vec<TouchRecord>The decoded records, in first-touch order.
Implementations§
Source§impl TouchMap
impl TouchMap
Sourcepub fn is_partial(&self) -> bool
pub fn is_partial(&self) -> bool
A partial map (overflowed or skipped) does NOT enumerate the
instruction’s complete effect set, so byte attribution against it is
impossible, a verifier must return INCONCLUSIVE, never PASS.
Sourcepub fn writes(&self) -> impl Iterator<Item = &TouchRecord>
pub fn writes(&self) -> impl Iterator<Item = &TouchRecord>
The WRITE records only (the acquired write-set).
Trait Implementations§
impl Eq for TouchMap
impl StructuralPartialEq for TouchMap
Auto Trait Implementations§
impl Freeze for TouchMap
impl RefUnwindSafe for TouchMap
impl Send for TouchMap
impl Sync for TouchMap
impl Unpin for TouchMap
impl UnsafeUnpin for TouchMap
impl UnwindSafe for TouchMap
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