Struct rusty_v8::StackFrame [−][src]
A single JavaScript stack frame.
Implementations
impl StackFrame
[src]
pub fn get_line_number(&self) -> usize
[src]
Returns the number, 1-based, of the line for the associated function call. This method will return Message::kNoLineNumberInfo if it is unable to retrieve the line number, or if kLineNumber was not passed as an option when capturing the StackTrace.
pub fn get_column(&self) -> usize
[src]
Returns the 1-based column offset on the line for the associated function call. This method will return Message::kNoColumnInfo if it is unable to retrieve the column number, or if kColumnOffset was not passed as an option when capturing the StackTrace.
pub fn get_script_id(&self) -> usize
[src]
Returns the id of the script for the function for this StackFrame. This method will return Message::kNoScriptIdInfo if it is unable to retrieve the script id, or if kScriptId was not passed as an option when capturing the StackTrace.
pub fn get_script_name<'s>(
&self,
scope: &mut HandleScope<'s>
) -> Option<Local<'s, String>>
[src]
&self,
scope: &mut HandleScope<'s>
) -> Option<Local<'s, String>>
Returns the name of the resource that contains the script for the function for this StackFrame.
pub fn get_script_name_or_source_url<'s>(
&self,
scope: &mut HandleScope<'s>
) -> Option<Local<'s, String>>
[src]
&self,
scope: &mut HandleScope<'s>
) -> Option<Local<'s, String>>
Returns the name of the resource that contains the script for the function for this StackFrame or sourceURL value if the script name is undefined and its source ends with //# sourceURL=… string or deprecated //@ sourceURL=… string.
pub fn get_function_name<'s>(
&self,
scope: &mut HandleScope<'s>
) -> Option<Local<'s, String>>
[src]
&self,
scope: &mut HandleScope<'s>
) -> Option<Local<'s, String>>
Returns the name of the function associated with this stack frame.
pub fn is_eval(&self) -> bool
[src]
Returns whether or not the associated function is compiled via a call to eval().
pub fn is_constructor(&self) -> bool
[src]
Returns whether or not the associated function is called as a constructor via “new”.
pub fn is_wasm(&self) -> bool
[src]
Returns whether or not the associated functions is defined in wasm.
pub fn is_user_javascript(&self) -> bool
[src]
Returns whether or not the associated function is defined by the user.
Methods from Deref<Target = Data>
pub fn get_hash(&self) -> int
[src]
Returns the V8 hash value for this value. The current implementation uses a hidden property to store the identity hash on some object types.
The return value will never be 0. Also, it is not guaranteed to be unique.
pub fn is_value(&self) -> bool
[src]
Returns true if this data is a Value
.
pub fn is_module(&self) -> bool
[src]
Returns true if this data is a Module
.
pub fn is_private(&self) -> bool
[src]
Returns true if this data is a Private
.
pub fn is_object_template(&self) -> bool
[src]
Returns true if this data is an ObjectTemplate
pub fn is_function_template(&self) -> bool
[src]
Returns true if this data is a FunctionTemplate.
Trait Implementations
impl Debug for StackFrame
[src]
impl Deref for StackFrame
[src]
impl Eq for StackFrame
[src]
impl Hash for StackFrame
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'s> PartialEq<Data> for StackFrame
[src]
impl<'s> PartialEq<StackFrame> for Data
[src]
fn eq(&self, other: &StackFrame) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'s> PartialEq<StackFrame> for StackFrame
[src]
Auto Trait Implementations
impl RefUnwindSafe for StackFrame
impl Send for StackFrame
impl Sync for StackFrame
impl Unpin for StackFrame
impl UnwindSafe for StackFrame
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,