pub struct V8FunctionCoverage {
pub function_name: String,
pub ranges: Vec<V8CoverageRange>,
pub is_block_coverage: bool,
}Expand description
A function’s coverage data as reported by the V8 inspector.
Serializes to / from the same JSON shape as the Chrome DevTools Protocol’s
Profiler.FunctionCoverage
so callers can hand the V8 inspector’s output straight through.
Fields§
§function_name: StringFunction name as reported by V8 (may be empty for anonymous functions or the implicit top-level module function).
ranges: Vec<V8CoverageRange>One or more UTF-16 code-unit ranges. With is_block_coverage = false there is
exactly one range (the whole function); with is_block_coverage = true
the outermost range covers the function and inner ranges cover blocks.
is_block_coverage: boolWhen true, ranges includes block-level subdivisions. When false, the
only count is at function granularity.
Trait Implementations§
Source§impl Clone for V8FunctionCoverage
impl Clone for V8FunctionCoverage
Source§impl Debug for V8FunctionCoverage
impl Debug for V8FunctionCoverage
Source§impl<'de> Deserialize<'de> for V8FunctionCoverage
impl<'de> Deserialize<'de> for V8FunctionCoverage
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
Auto Trait Implementations§
impl Freeze for V8FunctionCoverage
impl RefUnwindSafe for V8FunctionCoverage
impl Send for V8FunctionCoverage
impl Sync for V8FunctionCoverage
impl Unpin for V8FunctionCoverage
impl UnsafeUnpin for V8FunctionCoverage
impl UnwindSafe for V8FunctionCoverage
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