pub enum Type {
Named(String),
Bool,
Int,
BoundedInt {
lo: Expr,
hi: Expr,
},
Double,
String,
Chan,
Clock,
HybridClock,
Void,
Scalar(Expr),
Struct(Vec<Field>),
}Expand description
A base type (Type, parser.y:657), without its prefix.
Array dimensions are deliberately absent: UTAP attaches them to the
declarator, not the type (int a[4], b; declares one array and one
scalar), so they live on Declarator and DeclId.
Variants§
Named(String)
A previously declared type name (T_TYPENAME).
Bool
bool.
Int
int.
BoundedInt
int[lo, hi] — a bounded integer.
Double
double.
String
string.
Chan
chan.
Clock
clock.
HybridClock
hybrid clock — its own production, not a prefix plus clock.
Void
void.
Scalar(Expr)
scalar[n].
Struct(Vec<Field>)
struct { … }.
Trait Implementations§
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnsafeUnpin for Type
impl UnwindSafe for Type
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.