Enum semantic_analyzer::ast::Type
source · pub enum Type<'a> {
Primitive(PrimitiveTypes),
Struct(StructTypes<'a>),
Array(Box<Self>, u32),
}Expand description
Type element of AST.
Basic entity that represents types. Basic type entity is:
- Primitive types
- Struct types
- Arrays
Variants§
Trait Implementations§
source§impl<'a> PartialEq for Type<'a>
impl<'a> PartialEq for Type<'a>
impl<'a> StructuralPartialEq for Type<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Type<'a>
impl<'a> Send for Type<'a>
impl<'a> Sync for Type<'a>
impl<'a> Unpin for Type<'a>
impl<'a> UnwindSafe for Type<'a>
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