pub struct TransactionViews<'t> { /* private fields */ }Expand description
Every transaction view of a message, prepared once.
AssembledTree::transaction_view finds what a view leaves out by
walking every other transaction, and the caller then filters the whole
message by it: one view costs as much as the message, all of them its
square — 1,600 UTILMD transactions took 1.6 s for the views alone. This
sorts each segment once into what every view of a kind keeps and what
only one transaction’s view keeps, so a view costs its own transaction
plus what the transactions share (the header, SG2, …).
Implementations§
Source§impl TransactionViews<'_>
impl TransactionViews<'_>
Sourcepub fn view(
&self,
group_id: &str,
index: usize,
) -> Option<TransactionSegmentsView>
pub fn view( &self, group_id: &str, index: usize, ) -> Option<TransactionSegmentsView>
Transaction index of the top-level group group_id, as
AssembledTree::transaction_view gives it, with the message
segments it keeps. None when the group is no transaction group or
has no such repetition.
Trait Implementations§
Auto Trait Implementations§
impl<'t> Freeze for TransactionViews<'t>
impl<'t> RefUnwindSafe for TransactionViews<'t>
impl<'t> Send for TransactionViews<'t>
impl<'t> Sync for TransactionViews<'t>
impl<'t> Unpin for TransactionViews<'t>
impl<'t> UnsafeUnpin for TransactionViews<'t>
impl<'t> UnwindSafe for TransactionViews<'t>
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