[−][src]Struct rustc_mir_build::build::scope::Scopes
Fields
scopes: Vec<Scope>breakable_scopes: Vec<BreakableScope<'tcx>>The current set of breakable scopes. See module comment for more details.
unwind_drops: DropTreeDrops that need to be done on unwind paths. See the comment on DropTree for more details.
generator_drops: DropTreeDrops that need to be done on paths to the GeneratorDrop terminator.
Implementations
impl<'tcx> Scopes<'tcx>[src]
pub(crate) fn new() -> Self[src]
pub(in build::scope) fn push_scope(
&mut self,
region_scope: (Scope, SourceInfo),
vis_scope: SourceScope
)[src]
&mut self,
region_scope: (Scope, SourceInfo),
vis_scope: SourceScope
)
pub(in build::scope) fn pop_scope(
&mut self,
region_scope: (Scope, SourceInfo)
) -> Scope[src]
&mut self,
region_scope: (Scope, SourceInfo)
) -> Scope
pub(in build::scope) fn scope_index(
&self,
region_scope: Scope,
span: Span
) -> usize[src]
&self,
region_scope: Scope,
span: Span
) -> usize
pub(in build::scope) fn topmost(
&self
) -> Scope[src]
&self
) -> Scope
Returns the topmost active scope, which is known to be alive until the next scope expression.
Trait Implementations
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for Scopes<'tcx>
impl<'tcx> !Send for Scopes<'tcx>
impl<'tcx> !Sync for Scopes<'tcx>
impl<'tcx> Unpin for Scopes<'tcx>
impl<'tcx> !UnwindSafe for Scopes<'tcx>
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<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
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>,