pub struct ParseMetadata {
pub strategy_used: String,
pub duration: Duration,
pub candidates_evaluated: usize,
pub total_candidates: usize,
pub winning_score: u32,
}Expand description
Metadata about a parsing operation.
This provides insight into which strategy succeeded and how long parsing took.
Fields§
§strategy_used: StringWhich parsing strategy produced the successful candidate.
duration: DurationTotal parse duration.
candidates_evaluated: usizeNumber of candidates evaluated before finding a match.
total_candidates: usizeTotal number of candidates produced by all strategies.
winning_score: u32Score of the winning candidate (lower is better).
Trait Implementations§
Source§impl Clone for ParseMetadata
impl Clone for ParseMetadata
Source§fn clone(&self) -> ParseMetadata
fn clone(&self) -> ParseMetadata
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 ParseMetadata
impl RefUnwindSafe for ParseMetadata
impl Send for ParseMetadata
impl Sync for ParseMetadata
impl Unpin for ParseMetadata
impl UnwindSafe for ParseMetadata
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