pub struct Scope {
pub type: ScopeType,
pub object: RemoteObject,
pub name: Option<String>,
pub start_location: Option<Location>,
pub end_location: Option<Location>,
pub empty_reason: Option<ScopeEmptyReason>,
}Expand description
Scope description.
Fields§
§type: ScopeTypeScope type.
object: RemoteObjectObject representing the scope. For global and with scopes it
represents the actual object; for the rest of the scopes, it is artificial
transient object enumerating scope variables as its properties.
name: Option<String>§start_location: Option<Location>Location in the source code where scope starts
end_location: Option<Location>Location in the source code where scope ends
empty_reason: Option<ScopeEmptyReason>Present if the scope has no variable values to show. Absent means that the
scope declares at least one variable with an available value. Empty scopes
are retained in the scope chain because they can be targeted via
evaluateOnCallFrame (using scopeNumber) or matched against scopes in
source maps.
Experimental: may change without notice.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Scope
impl<'de> Deserialize<'de> for Scope
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
impl StructuralPartialEq for Scope
Auto Trait Implementations§
impl Forget for Scope
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
impl UnwindSafe for Scope
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