pub(crate) struct EVarStore {
evars: IndexVec<EVid, EVarState>,
scopes: Vec<Vec<EVid>>,
}Fields§
§evars: IndexVec<EVid, EVarState>§scopes: Vec<Vec<EVid>>Implementations§
Source§impl EVarStore
impl EVarStore
pub(crate) fn fresh(&mut self, marker: Marker) -> EVid
pub(crate) fn push_scope(&mut self)
pub(crate) fn pop_scope(&mut self) -> Result<(), EVid>
pub(crate) fn replace_evars<T: TypeFoldable>(&self, t: &T) -> Result<T, EVid>
pub(crate) fn solve(&mut self, evid: EVid, expr: Expr)
pub(crate) fn get(&self, evid: EVid) -> &EVarState
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EVarStore
impl !RefUnwindSafe for EVarStore
impl !Send for EVarStore
impl !Sync for EVarStore
impl Unpin for EVarStore
impl !UnwindSafe for EVarStore
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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