#[non_exhaustive]pub struct ScopeFrame {
pub id: HirScopeId,
pub parent: Option<HirScopeId>,
pub kind: ScopeKind,
pub range: SourceLocation,
pub package_context: Option<String>,
}Expand description
One lexical/package scope frame.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: HirScopeIdStable scope id.
parent: Option<HirScopeId>Parent scope id, absent for the file scope.
kind: ScopeKindScope category.
range: SourceLocationSource range covered by the scope.
package_context: Option<String>Package context active for this scope, when known.
Trait Implementations§
Source§impl Clone for ScopeFrame
impl Clone for ScopeFrame
Source§fn clone(&self) -> ScopeFrame
fn clone(&self) -> ScopeFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScopeFrame
impl Debug for ScopeFrame
Source§impl PartialEq for ScopeFrame
impl PartialEq for ScopeFrame
Source§fn eq(&self, other: &ScopeFrame) -> bool
fn eq(&self, other: &ScopeFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ScopeFrame
impl StructuralPartialEq for ScopeFrame
Auto Trait Implementations§
impl Freeze for ScopeFrame
impl RefUnwindSafe for ScopeFrame
impl Send for ScopeFrame
impl Sync for ScopeFrame
impl Unpin for ScopeFrame
impl UnsafeUnpin for ScopeFrame
impl UnwindSafe for ScopeFrame
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