pub struct BatchMapping { /* private fields */ }Expand description
Mapping from call index to batch result index.
When calls are batched, we need to track which result corresponds to which original call for reconstructing per-call outputs.
Implementations§
Source§impl BatchMapping
impl BatchMapping
Sourcepub fn from_collector(collector: &BatchCollector) -> Self
pub fn from_collector(collector: &BatchCollector) -> Self
Create a new mapping from a collector.
Trait Implementations§
Source§impl Clone for BatchMapping
impl Clone for BatchMapping
Source§fn clone(&self) -> BatchMapping
fn clone(&self) -> BatchMapping
Returns a duplicate of the value. Read more
1.0.0 · 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 BatchMapping
impl RefUnwindSafe for BatchMapping
impl Send for BatchMapping
impl Sync for BatchMapping
impl Unpin for BatchMapping
impl UnsafeUnpin for BatchMapping
impl UnwindSafe for BatchMapping
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