pub struct Scope<'a> { /* private fields */ }Expand description
Scope description.
Implementations§
Source§impl<'a> Scope<'a>
impl<'a> Scope<'a>
Sourcepub fn builder(
type_: impl Into<Cow<'a, str>>,
object: RemoteObject<'a>,
) -> ScopeBuilder<'a>
pub fn builder( type_: impl Into<Cow<'a, str>>, object: RemoteObject<'a>, ) -> ScopeBuilder<'a>
Creates a builder for this type with the required parameters:
type_: Scope type.object: Object representing the scope. Forglobalandwithscopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.
Sourcepub fn object(&self) -> &RemoteObject<'a>
pub fn object(&self) -> &RemoteObject<'a>
Object 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.
pub fn name(&self) -> Option<&str>
Sourcepub fn start_location(&self) -> Option<&Location<'a>>
pub fn start_location(&self) -> Option<&Location<'a>>
Location in the source code where scope starts
Sourcepub fn end_location(&self) -> Option<&Location<'a>>
pub fn end_location(&self) -> Option<&Location<'a>>
Location in the source code where scope ends
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Scope<'a>
impl<'de, 'a> Deserialize<'de> for Scope<'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 Scope<'a>
impl<'a> RefUnwindSafe for Scope<'a>
impl<'a> Send for Scope<'a>
impl<'a> Sync for Scope<'a>
impl<'a> Unpin for Scope<'a>
impl<'a> UnsafeUnpin for Scope<'a>
impl<'a> UnwindSafe for Scope<'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