pub struct CallFrame<'a> { /* private fields */ }Expand description
Stack entry for runtime errors and assertions.
Implementations§
Source§impl<'a> CallFrame<'a>
impl<'a> CallFrame<'a>
Sourcepub fn builder(
function_name: impl Into<Cow<'a, str>>,
script_id: impl Into<ScriptId<'a>>,
url: impl Into<Cow<'a, str>>,
line_number: i64,
column_number: i64,
) -> CallFrameBuilder<'a>
pub fn builder( function_name: impl Into<Cow<'a, str>>, script_id: impl Into<ScriptId<'a>>, url: impl Into<Cow<'a, str>>, line_number: i64, column_number: i64, ) -> CallFrameBuilder<'a>
Creates a builder for this type with the required parameters:
function_name: JavaScript function name.script_id: JavaScript script id.url: JavaScript script name or url.line_number: JavaScript script line number (0-based).column_number: JavaScript script column number (0-based).
Sourcepub fn function_name(&self) -> &str
pub fn function_name(&self) -> &str
JavaScript function name.
Sourcepub fn line_number(&self) -> i64
pub fn line_number(&self) -> i64
JavaScript script line number (0-based).
Sourcepub fn column_number(&self) -> i64
pub fn column_number(&self) -> i64
JavaScript script column number (0-based).
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for CallFrame<'a>
impl<'de, 'a> Deserialize<'de> for CallFrame<'a>
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<'a> Freeze for CallFrame<'a>
impl<'a> RefUnwindSafe for CallFrame<'a>
impl<'a> Send for CallFrame<'a>
impl<'a> Sync for CallFrame<'a>
impl<'a> Unpin for CallFrame<'a>
impl<'a> UnsafeUnpin for CallFrame<'a>
impl<'a> UnwindSafe for CallFrame<'a>
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