pub struct FunctionCoverage { /* private fields */ }Available on crate features
Profiler and Runtime and Debugger only.Expand description
Coverage data for a JavaScript function.
Implementations§
Source§impl FunctionCoverage
impl FunctionCoverage
pub fn new( function_name: String, ranges: Vec<CoverageRange>, is_block_coverage: bool, ) -> Self
Sourcepub fn function_name(&self) -> &str
pub fn function_name(&self) -> &str
JavaScript function name.
Sourcepub fn ranges(&self) -> &[CoverageRange]
pub fn ranges(&self) -> &[CoverageRange]
Source ranges inside the function with coverage data.
Sourcepub fn is_block_coverage(&self) -> bool
pub fn is_block_coverage(&self) -> bool
Whether coverage data for this function has block granularity.
Trait Implementations§
Source§impl Clone for FunctionCoverage
impl Clone for FunctionCoverage
Source§fn clone(&self) -> FunctionCoverage
fn clone(&self) -> FunctionCoverage
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 FunctionCoverage
impl Debug for FunctionCoverage
Source§impl<'de> Deserialize<'de> for FunctionCoverage
impl<'de> Deserialize<'de> for FunctionCoverage
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 FunctionCoverage
impl RefUnwindSafe for FunctionCoverage
impl Send for FunctionCoverage
impl Sync for FunctionCoverage
impl Unpin for FunctionCoverage
impl UnwindSafe for FunctionCoverage
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