struct AdtSortDefData {
def_id: DefId,
params: Vec<ParamTy>,
field_names: Vec<Symbol>,
sorts: List<Sort>,
}
Fields§
§def_id: DefId
DefId
of the struct, enum or type aliases this data sort is associated to
params: Vec<ParamTy>
The list of the type parameters used in the #[flux::refined_by(..)]
annotation.
See fhir::RefinedBy::sort_params
for more details. This is a version of that but using
ParamTy
instead of DefId
.
The length of this list corresponds to the number of sort variables bound by this definition.
field_names: Vec<Symbol>
The list of field names as declared in the #[flux::refined_by(...)]
annotation
sorts: List<Sort>
The sort of each of the fields. Note that these can contain sort variables. Methods used to access these sorts guarantee they are properly instantiated.
Trait Implementations§
Source§impl Debug for AdtSortDefData
impl Debug for AdtSortDefData
Source§impl<__D: TyDecoder> Decodable<__D> for AdtSortDefData
impl<__D: TyDecoder> Decodable<__D> for AdtSortDefData
Source§impl<__E: TyEncoder> Encodable<__E> for AdtSortDefData
impl<__E: TyEncoder> Encodable<__E> for AdtSortDefData
Source§impl Hash for AdtSortDefData
impl Hash for AdtSortDefData
Source§impl Internable for AdtSortDefData
impl Internable for AdtSortDefData
fn storage() -> &'static InternStorage<Self>
Source§impl PartialEq for AdtSortDefData
impl PartialEq for AdtSortDefData
impl Eq for AdtSortDefData
impl StructuralPartialEq for AdtSortDefData
Auto Trait Implementations§
impl Freeze for AdtSortDefData
impl RefUnwindSafe for AdtSortDefData
impl Send for AdtSortDefData
impl Sync for AdtSortDefData
impl Unpin for AdtSortDefData
impl UnwindSafe for AdtSortDefData
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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