pub enum Type {
Builtin(BuiltinType),
Primitive(TypeId, Sym, Pos),
Enum {
name: Sym,
id: TypeId,
is_extern: bool,
is_nodebug: bool,
variants: Vec<Variant>,
pos: Pos,
},
}
Expand description
A type.
Variants§
Builtin(BuiltinType)
Built-in types. Always in scope, not defined anywhere in source.
Primitive(TypeId, Sym, Pos)
A primitive, Copy
type.
These are always defined externally, and we allow literals of these types to pass through from ISLE source code to the emitted Rust code.
Enum
A sum type.
Note that enums with only one variant are equivalent to a “struct”.
Implementations§
Trait Implementations§
impl Eq for Type
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 UnwindSafe for Type
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