pub struct ScriptCoverage { /* private fields */ }Available on crate features
Profiler and Runtime and Debugger only.Expand description
Coverage data for a JavaScript script.
Implementations§
Source§impl ScriptCoverage
impl ScriptCoverage
pub fn new( script_id: ScriptId, url: String, functions: Vec<FunctionCoverage>, ) -> Self
Sourcepub fn functions(&self) -> &[FunctionCoverage]
pub fn functions(&self) -> &[FunctionCoverage]
Functions contained in the script that has coverage data.
Trait Implementations§
Source§impl Clone for ScriptCoverage
impl Clone for ScriptCoverage
Source§fn clone(&self) -> ScriptCoverage
fn clone(&self) -> ScriptCoverage
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 ScriptCoverage
impl Debug for ScriptCoverage
Source§impl<'de> Deserialize<'de> for ScriptCoverage
impl<'de> Deserialize<'de> for ScriptCoverage
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 ScriptCoverage
impl RefUnwindSafe for ScriptCoverage
impl Send for ScriptCoverage
impl Sync for ScriptCoverage
impl Unpin for ScriptCoverage
impl UnwindSafe for ScriptCoverage
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