pub struct JSFunctionCoverage {
pub function_name: String,
pub is_block_coverage: bool,
pub ranges: Vec<JSCoverageRange>,
}Expand description
Per-function coverage data within a JSCoverageEntry.
Fields§
§function_name: StringThe function name (empty string for anonymous functions).
is_block_coverage: boolWhether this is block-level coverage (true) or function-level (false).
ranges: Vec<JSCoverageRange>Covered byte-offset ranges within this function.
Trait Implementations§
Source§impl Clone for JSFunctionCoverage
impl Clone for JSFunctionCoverage
Source§fn clone(&self) -> JSFunctionCoverage
fn clone(&self) -> JSFunctionCoverage
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 moreSource§impl Debug for JSFunctionCoverage
impl Debug for JSFunctionCoverage
Source§impl<'de> Deserialize<'de> for JSFunctionCoverage
impl<'de> Deserialize<'de> for JSFunctionCoverage
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 JSFunctionCoverage
impl RefUnwindSafe for JSFunctionCoverage
impl Send for JSFunctionCoverage
impl Sync for JSFunctionCoverage
impl Unpin for JSFunctionCoverage
impl UnsafeUnpin for JSFunctionCoverage
impl UnwindSafe for JSFunctionCoverage
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