pub struct Outcome {
pub input_objects: usize,
pub expanded_objects: usize,
pub decoded_objects: usize,
pub total_objects: usize,
}Available on crate feature
generate only.Expand description
Information gathered during the run of iter_from_objects().
Fields§
§input_objects: usizeThe amount of objects provided to start the iteration.
expanded_objects: usizeThe amount of objects that have been expanded from the input source.
It’s desirable to do that as expansion happens on multiple threads, allowing the amount of input objects to be small.
expanded_objects - decoded_objects is the ‘cheap’ object we found without decoding the object itself.
decoded_objects: usizeThe amount of fully decoded objects. These are the most expensive as they are fully decoded
total_objects: usizeThe total amount of encountered objects. Should be expanded_objects + input_objects.
Trait Implementations§
impl Copy for Outcome
Source§impl<'de> Deserialize<'de> for Outcome
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Outcome
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Outcome
Source§impl Ord for Outcome
impl Ord for Outcome
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Outcome
impl PartialOrd for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.