pub enum ExprRes<Id = ParamId> {
Param(ParamKind, Id),
Const(DefId),
Ctor(DefId),
ConstGeneric(DefId),
NumConst(i128),
GlobalFunc(SpecFuncKind, Symbol),
}
Variants§
Param(ParamKind, Id)
Const(DefId)
Ctor(DefId)
The constructor of an adt sort
ConstGeneric(DefId)
NumConst(i128)
GlobalFunc(SpecFuncKind, Symbol)
Implementations§
Source§impl<Id> ExprRes<Id>
impl<Id> ExprRes<Id>
pub fn map_param_id<R>(self, f: impl FnOnce(Id) -> R) -> ExprRes<R>
pub fn expect_param(self) -> (ParamKind, Id)
Trait Implementations§
impl<Id: Copy> Copy for ExprRes<Id>
Auto Trait Implementations§
impl<Id> Freeze for ExprRes<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for ExprRes<Id>where
Id: RefUnwindSafe,
impl<Id> Send for ExprRes<Id>where
Id: Send,
impl<Id> Sync for ExprRes<Id>where
Id: Sync,
impl<Id> Unpin for ExprRes<Id>where
Id: Unpin,
impl<Id> UnwindSafe for ExprRes<Id>where
Id: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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