Skip to main content

BaseState

Trait BaseState 

Source
pub trait BaseState<'tcx>: HasBase<'tcx> + Clone {
    // Provided methods
    fn tcx(&self) -> TyCtxt<'tcx> { ... }
    fn with_hax_owner(&self, owner: &DefId) -> StateWithOwner<'tcx> { ... }
    fn with_rustc_owner(&self, owner_id: RDefId) -> StateWithOwner<'tcx> { ... }
}

Provided Methods§

Source

fn tcx(&self) -> TyCtxt<'tcx>

Source

fn with_hax_owner(&self, owner: &DefId) -> StateWithOwner<'tcx>

Create a state with the given owner.

Source

fn with_rustc_owner(&self, owner_id: RDefId) -> StateWithOwner<'tcx>

Create a state with the given owner.

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: HasBase<'tcx> + Clone> BaseState<'tcx> for T