pub enum SortRes {
PrimSort(PrimSort),
User(FluxDefId),
SortParam(usize),
TyParam(DefId),
SelfParam {
trait_id: DefId,
},
SelfAlias {
alias_to: DefId,
},
SelfParamAssoc {
trait_id: DefId,
ident: Ident,
},
Adt(DefId),
}Variants§
PrimSort(PrimSort)
A primitive sort.
User(FluxDefId)
A user declared sort.
SortParam(usize)
A sort parameter inside a polymorphic function or data sort.
TyParam(DefId)
The sort associated to a (generic) type parameter
SelfParam
The sort of the Self type, as used within a trait.
SelfAlias
The sort of a Self type, as used somewhere other than within a trait.
SelfParamAssoc
The sort of an associated type in a trait declaration, e.g:
ⓘ
#[assoc(fn assoc_reft(x: Self::Assoc) -> bool)]
trait MyTrait {
type Assoc;
}Adt(DefId)
The sort automatically generated for an adt (enum/struct) with a flux::refined_by annotation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SortRes
impl RefUnwindSafe for SortRes
impl Send for SortRes
impl Sync for SortRes
impl Unpin for SortRes
impl UnwindSafe for SortRes
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,
§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