pub struct Outcome {
pub input_objects: usize,
pub expanded_objects: usize,
pub decoded_objects: usize,
pub total_objects: usize,
}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§
source§impl<'de> Deserialize<'de> for Outcome
impl<'de> Deserialize<'de> for Outcome
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
source§impl Ord for Outcome
impl Ord for Outcome
source§impl PartialEq<Outcome> for Outcome
impl PartialEq<Outcome> for Outcome
source§impl PartialOrd<Outcome> for Outcome
impl PartialOrd<Outcome> for Outcome
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for Outcome
impl Eq for Outcome
impl StructuralEq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnwindSafe for Outcome
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more