flux_fhir_analysis::conv

Struct AfterSortck

Source
pub(crate) struct AfterSortck<'a, 'genv, 'tcx> {
    genv: GlobalEnv<'genv, 'tcx>,
    wfckresults: &'a WfckResults,
    next_sort_index: u32,
    next_type_index: u32,
    next_region_index: u32,
    next_const_index: u32,
}

Fields§

§genv: GlobalEnv<'genv, 'tcx>§wfckresults: &'a WfckResults§next_sort_index: u32§next_type_index: u32§next_region_index: u32§next_const_index: u32

Implementations§

Source§

impl<'a, 'genv, 'tcx> AfterSortck<'a, 'genv, 'tcx>

Source

pub(crate) fn new( genv: GlobalEnv<'genv, 'tcx>, wfckresults: &'a WfckResults, ) -> Self

Trait Implementations§

Source§

impl<'genv, 'tcx> ConvPhase<'genv, 'tcx> for AfterSortck<'_, 'genv, 'tcx>

Source§

const EXPAND_TYPE_ALIASES: bool = true

Whether to expand type aliases or to generate a weak rty::AliasTy.
Source§

const HAS_ELABORATED_INFORMATION: bool = true

Whether we have elaborated information or not (in the first phase we will not, but in the second we will).
Source§

type Results = WfckResults

Source§

fn genv(&self) -> GlobalEnv<'genv, 'tcx>

Source§

fn owner(&self) -> FluxOwnerId

Source§

fn next_sort_vid(&mut self) -> SortVid

Source§

fn next_type_vid(&mut self) -> TyVid

Source§

fn next_region_vid(&mut self) -> RegionVid

Source§

fn next_const_vid(&mut self) -> ConstVid

Source§

fn results(&self) -> &Self::Results

Source§

fn insert_bty_sort(&mut self, _: FhirId, _: Sort)

Called after converting an indexed type b[e] with the fhir_id and sort of b. Used during the first phase to collect the sort of base types.
Source§

fn insert_alias_reft_sort(&mut self, _: FhirId, _: FuncSort)

Called after converting an fhir::ExprKind::Alias with the sort of the resulting rty::AliasReft. Used during the first phase to collect the sorts of refinement aliases.
Source§

fn into_conv_ctxt(self) -> ConvCtxt<Self>

Source§

fn as_conv_ctxt(&mut self) -> &mut ConvCtxt<Self>

Auto Trait Implementations§

§

impl<'a, 'genv, 'tcx> Freeze for AfterSortck<'a, 'genv, 'tcx>

§

impl<'a, 'genv, 'tcx> !RefUnwindSafe for AfterSortck<'a, 'genv, 'tcx>

§

impl<'a, 'genv, 'tcx> !Send for AfterSortck<'a, 'genv, 'tcx>

§

impl<'a, 'genv, 'tcx> !Sync for AfterSortck<'a, 'genv, 'tcx>

§

impl<'a, 'genv, 'tcx> Unpin for AfterSortck<'a, 'genv, 'tcx>

§

impl<'a, 'genv, 'tcx> !UnwindSafe for AfterSortck<'a, 'genv, 'tcx>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.