Enum semantic_analyzer::types::types::Type
source · pub enum Type {
Primitive(PrimitiveTypes),
Struct(StructTypes),
Array(Box<Self>, u32),
}Variants§
Implementations§
source§impl Type
impl Type
pub fn name(&self) -> TypeName
pub fn get_struct(&self) -> Option<StructTypes>
Trait Implementations§
source§impl PartialEq<Type> for Type
impl PartialEq<Type> for Type
source§impl TypeAttributes for Type
impl TypeAttributes for Type
fn get_attribute_index(&self, attr_name: &ValueName) -> Option<u32>
fn get_attribute_type(&self, attr_name: &ValueName) -> Option<Type>
fn get_method(&self, method_name: String) -> Option<FunctionName>
fn is_attribute(&self, attr_name: &ValueName) -> bool
fn is_method(&self, method_name: String) -> bool
impl Eq for Type
impl StructuralEq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
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