#[non_exhaustive]pub struct JSCoverageStartOptions {
pub report_anonymous: Option<bool>,
pub include_block_coverage: Option<bool>,
}Expand description
Options for Coverage::start_js_coverage.
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.report_anonymous: Option<bool>Report anonymous (non-covered vs covered byte ranges) as well as
call counts. Maps to CDP detailed. Defaults to true.
include_block_coverage: Option<bool>Collect per-block coverage (true) rather than per-function (false).
Maps to CDP detailed. Defaults to true.
Implementations§
Source§impl JSCoverageStartOptions
impl JSCoverageStartOptions
pub fn report_anonymous(self, v: bool) -> Self
pub fn include_block_coverage(self, v: bool) -> Self
Trait Implementations§
Source§impl Clone for JSCoverageStartOptions
impl Clone for JSCoverageStartOptions
Source§fn clone(&self) -> JSCoverageStartOptions
fn clone(&self) -> JSCoverageStartOptions
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 JSCoverageStartOptions
impl Debug for JSCoverageStartOptions
Source§impl Default for JSCoverageStartOptions
impl Default for JSCoverageStartOptions
Source§fn default() -> JSCoverageStartOptions
fn default() -> JSCoverageStartOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JSCoverageStartOptions
impl RefUnwindSafe for JSCoverageStartOptions
impl Send for JSCoverageStartOptions
impl Sync for JSCoverageStartOptions
impl Unpin for JSCoverageStartOptions
impl UnsafeUnpin for JSCoverageStartOptions
impl UnwindSafe for JSCoverageStartOptions
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