#[non_exhaustive]pub struct JSCoverageFunction {
pub function_name: String,
pub is_block_coverage: bool,
pub ranges: Vec<JSCoverageRange>,
}Expand description
A single function within a JS coverage entry.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.function_name: StringFunction name (may be empty for anonymous functions).
is_block_coverage: boolWhether block-level coverage was collected for this function.
ranges: Vec<JSCoverageRange>Covered ranges: byte offsets and call counts.
Trait Implementations§
Source§impl Clone for JSCoverageFunction
impl Clone for JSCoverageFunction
Source§fn clone(&self) -> JSCoverageFunction
fn clone(&self) -> JSCoverageFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JSCoverageFunction
impl Debug for JSCoverageFunction
Source§impl Default for JSCoverageFunction
impl Default for JSCoverageFunction
Source§fn default() -> JSCoverageFunction
fn default() -> JSCoverageFunction
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JSCoverageFunction
impl RefUnwindSafe for JSCoverageFunction
impl Send for JSCoverageFunction
impl Sync for JSCoverageFunction
impl Unpin for JSCoverageFunction
impl UnsafeUnpin for JSCoverageFunction
impl UnwindSafe for JSCoverageFunction
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