Struct chrome_remote_interface_model::profiler::FunctionCoverage[][src]

pub struct FunctionCoverage { /* fields omitted */ }
This is supported on crate features Profiler and Runtime and Debugger only.

Coverage data for a JavaScript function.

Implementations

impl FunctionCoverage[src]

pub fn new(
    function_name: String,
    ranges: Vec<CoverageRange>,
    is_block_coverage: bool
) -> Self
[src]

pub fn function_name(&self) -> &str[src]

JavaScript function name.

pub fn ranges(&self) -> &[CoverageRange]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Source ranges inside the function with coverage data.

pub fn is_block_coverage(&self) -> bool[src]

Whether coverage data for this function has block granularity.

Trait Implementations

impl Clone for FunctionCoverage[src]

impl Debug for FunctionCoverage[src]

impl<'de> Deserialize<'de> for FunctionCoverage[src]

impl Serialize for FunctionCoverage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.