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: usize
The amount of objects provided to start the iteration.
expanded_objects: usize
The 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: usize
The amount of fully decoded objects. These are the most expensive as they are fully decoded
total_objects: usize
The 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 PartialOrd for Outcome
impl PartialOrd for Outcome
impl Copy for Outcome
impl Eq 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 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)