Trait UnderOwnerState

Source
pub trait UnderOwnerState<'tcx>: BaseState<'tcx> + HasOwnerId {
    // Provided methods
    fn with_base(&self, base: Base<'tcx>) -> StateWithOwner<'tcx> { ... }
    fn with_binder(&self, binder: UnitBinder<'tcx>) -> StateWithBinder<'tcx> { ... }
    fn with_thir(&self, thir: RcThir<'tcx>) -> StateWithThir<'tcx> { ... }
    fn with_mir(&self, mir: RcMir<'tcx>) -> StateWithMir<'tcx> { ... }
}
Expand description

State of anything below an owner.

Provided Methods§

Source

fn with_base(&self, base: Base<'tcx>) -> StateWithOwner<'tcx>

Source

fn with_binder(&self, binder: UnitBinder<'tcx>) -> StateWithBinder<'tcx>

Source

fn with_thir(&self, thir: RcThir<'tcx>) -> StateWithThir<'tcx>

Source

fn with_mir(&self, mir: RcMir<'tcx>) -> StateWithMir<'tcx>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'tcx, T: BaseState<'tcx> + HasOwnerId> UnderOwnerState<'tcx> for T